Alexandre Julliard : gdi32: Allow SetDIBits to use the null driver.
Alexandre Julliard
julliard at winehq.org
Wed Aug 31 13:19:19 CDT 2011
Module: wine
Branch: master
Commit: edb48a06eea5faf15ff7b2b40b859c25e9fd2573
URL: http://source.winehq.org/git/wine.git/?a=commit;h=edb48a06eea5faf15ff7b2b40b859c25e9fd2573
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Aug 30 21:06:43 2011 +0200
gdi32: Allow SetDIBits to use the null driver.
---
dlls/gdi32/dib.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
index 78dbd14..978119a 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -500,7 +500,6 @@ INT WINAPI SetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan,
{
DC *dc = get_dc_ptr( hdc );
BOOL delete_hdc = FALSE;
- PHYSDEV physdev;
BITMAPOBJ *bitmap;
char src_bmibuf[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
BITMAPINFO *src_info = (BITMAPINFO *)src_bmibuf;
@@ -578,11 +577,6 @@ INT WINAPI SetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan,
if (lines < src.visrect.bottom) src.visrect.bottom = lines;
}
- /* Hack to ensure we don't get the nulldrv if the bmp hasn't been selected
- into a dc yet */
- physdev = GET_DC_PHYSDEV( dc, pCreateBitmap );
- if (!BITMAP_SetOwnerDC( hbitmap, physdev )) goto done;
-
funcs = get_bitmap_funcs( bitmap );
result = lines;
More information about the wine-cvs
mailing list