From edb48a06eea5faf15ff7b2b40b859c25e9fd2573 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 30 Aug 2011 21:06:43 +0200 Subject: [PATCH] gdi32: Allow SetDIBits to use the null driver. --- dlls/gdi32/dib.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index 78dbd148002..978119a0ee1 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;