Commit ab35d6e7 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: BS_DIBPATTERN brushes use a 32-bit handle in 32-bit mode.

parent 10b0d11e
...@@ -298,7 +298,7 @@ HBRUSH CDECL X11DRV_SelectBrush( X11DRV_PDEVICE *physDev, HBRUSH hbrush ) ...@@ -298,7 +298,7 @@ HBRUSH CDECL X11DRV_SelectBrush( X11DRV_PDEVICE *physDev, HBRUSH hbrush )
case BS_DIBPATTERN: case BS_DIBPATTERN:
TRACE("BS_DIBPATTERN\n"); TRACE("BS_DIBPATTERN\n");
if ((bmpInfo = GlobalLock16( logbrush.lbHatch ))) if ((bmpInfo = GlobalLock( (HGLOBAL)logbrush.lbHatch )))
{ {
int size = bitmap_info_size( bmpInfo, logbrush.lbColor ); int size = bitmap_info_size( bmpInfo, logbrush.lbColor );
hBitmap = CreateDIBitmap( physDev->hdc, &bmpInfo->bmiHeader, hBitmap = CreateDIBitmap( physDev->hdc, &bmpInfo->bmiHeader,
...@@ -307,7 +307,7 @@ HBRUSH CDECL X11DRV_SelectBrush( X11DRV_PDEVICE *physDev, HBRUSH hbrush ) ...@@ -307,7 +307,7 @@ HBRUSH CDECL X11DRV_SelectBrush( X11DRV_PDEVICE *physDev, HBRUSH hbrush )
(WORD)logbrush.lbColor ); (WORD)logbrush.lbColor );
BRUSH_SelectPatternBrush( physDev, hBitmap ); BRUSH_SelectPatternBrush( physDev, hBitmap );
DeleteObject( hBitmap ); DeleteObject( hBitmap );
GlobalUnlock16( logbrush.lbHatch ); GlobalUnlock( (HGLOBAL)logbrush.lbHatch );
} }
break; break;
......
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