From 36195993f4774dc100437f2aef60201041ee752a Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry@baikal.ru>
Date: Mon, 26 Dec 2016 21:17:29 +0800
Subject: gdiplus: Ignore an externally set DC origin.

gdiplus maintains its own graphics state.

FIXME: perhaps some other places need a similar fix.
---
 dlls/gdiplus/graphics.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index f9a6f3e..e086dfc 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -497,6 +497,8 @@ static GpStatus alpha_blend_pixels_hrgn(GpGraphics *graphics, INT dst_x, INT dst
 
         save = SaveDC(graphics->hdc);
 
+        SetViewportOrgEx(graphics->hdc, 0, 0, NULL);
+
         if (hrgn)
             ExtSelectClipRgn(graphics->hdc, hrgn, RGN_AND);
 
-- 
2.9.0

