Commit 114e7269 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winex11: Use NtUserGetDC.

parent 609990f7
......@@ -564,7 +564,7 @@ static void *create_dib_from_bitmap( HBITMAP hBmp, size_t *size )
/* Retrieve the DIB bits from the bitmap and fill in the
* DIB color table if present */
hdc = NtUserGetDCEx( 0, 0, DCX_CACHE | DCX_WINDOW );
hdc = NtUserGetDC( 0 );
nLinesCopied = NtGdiGetDIBitsInternal( hdc, hBmp, 0, bmp.bmHeight, ret + OffsetBits,
(LPBITMAPINFO) pbmiHeader, 0, 0, 0 );
NtUserReleaseDC( 0, hdc );
......@@ -986,7 +986,7 @@ static void *import_image_bmp( Atom type, const void *data, size_t size, size_t
else return NULL;
if (!width || !height) return NULL;
hdc = NtUserGetDCEx( 0, 0, DCX_CACHE | DCX_WINDOW );
hdc = NtUserGetDC( 0 );
if ((hbmp = NtGdiCreateDIBitmapInternal( hdc, width, height, CBM_INIT,
(const BYTE *)data + bfh->bfOffBits, bmi,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment