Huw Davies : gdi32: Fix dibdrv_PutImage for the selected bitmap case.
Alexandre Julliard
julliard at winehq.org
Fri Aug 5 10:20:50 CDT 2011
Module: wine
Branch: master
Commit: 37423cec7c7d8d651c28485968f3006270f6acb1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=37423cec7c7d8d651c28485968f3006270f6acb1
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Aug 5 13:20:31 2011 +0100
gdi32: Fix dibdrv_PutImage for the selected bitmap case.
---
dlls/gdi32/dibdrv/dc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/dibdrv/dc.c b/dlls/gdi32/dibdrv/dc.c
index b5f4f2b..b0fe47f 100644
--- a/dlls/gdi32/dibdrv/dc.c
+++ b/dlls/gdi32/dibdrv/dc.c
@@ -542,7 +542,10 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
dib = &stand_alone;
}
else
+ {
+ pdev = get_dibdrv_pdev( dev );
dib = &pdev->dib;
+ }
if (info->bmiHeader.biPlanes != 1) goto update_format;
if (info->bmiHeader.biBitCount != dib->bit_count) goto update_format;
More information about the wine-cvs
mailing list