mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 20:31:35 +00:00
winex11: Check for failure to convert the brush bitmap to X11.
This commit is contained in:
parent
b5314f50ed
commit
8eb9ab531f
@ -269,6 +269,11 @@ HBITMAP create_brush_bitmap( X11DRV_PDEVICE *physDev, const struct brush_pattern
|
||||
memdc = CreateCompatibleDC( physDev->dev.hdc );
|
||||
SelectObject( memdc, bitmap );
|
||||
DeleteDC( memdc );
|
||||
if (!X11DRV_get_phys_bitmap( bitmap ))
|
||||
{
|
||||
DeleteObject( bitmap );
|
||||
return 0;
|
||||
}
|
||||
|
||||
SetDIBits( physDev->dev.hdc, bitmap, 0, abs(info->bmiHeader.biHeight),
|
||||
pattern->bits.ptr, info, pattern->usage );
|
||||
|
Loading…
x
Reference in New Issue
Block a user