gdiplus: fix for GdipGraphicsClear

Nikolay Sivov bunglehead at gmail.com
Fri Sep 5 07:55:06 CDT 2008


Changelog:
    - it's necessary to get window when we're creating from HDC to
      properly clear in GdipGraphicsClear

>From ea3d454172f2389255ccfc073943795a3f330173 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri, 5 Sep 2008 16:51:25 +0400
Subject:  fix for GdipGraphicsClear

---
 dlls/gdiplus/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index a8afa25..c1e63f6 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -754,7 +754,7 @@ GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **gra
     }
 
     (*graphics)->hdc = hdc;
-    (*graphics)->hwnd = NULL;
+    (*graphics)->hwnd = WindowFromDC(hdc);
     (*graphics)->smoothing = SmoothingModeDefault;
     (*graphics)->compqual = CompositingQualityDefault;
     (*graphics)->interpolation = InterpolationModeDefault;
-- 
1.4.4.4






More information about the wine-patches mailing list