Nikolay Sivov : gdiplus: Fix for GdipGraphicsClear.
Module: wine Branch: master Commit: 7258dea49c95069628f4ac9fbe053ae63817de8f URL: http://source.winehq.org/git/wine.git/?a=commit;h=7258dea49c95069628f4ac9fbe... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Sep 5 16:51:25 2008 +0400 gdiplus: 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;
participants (1)
-
Alexandre Julliard