Commit 8eb9ab53 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Check for failure to convert the brush bitmap to X11.

parent b5314f50
...@@ -269,6 +269,11 @@ HBITMAP create_brush_bitmap( X11DRV_PDEVICE *physDev, const struct brush_pattern ...@@ -269,6 +269,11 @@ HBITMAP create_brush_bitmap( X11DRV_PDEVICE *physDev, const struct brush_pattern
memdc = CreateCompatibleDC( physDev->dev.hdc ); memdc = CreateCompatibleDC( physDev->dev.hdc );
SelectObject( memdc, bitmap ); SelectObject( memdc, bitmap );
DeleteDC( memdc ); DeleteDC( memdc );
if (!X11DRV_get_phys_bitmap( bitmap ))
{
DeleteObject( bitmap );
return 0;
}
SetDIBits( physDev->dev.hdc, bitmap, 0, abs(info->bmiHeader.biHeight), SetDIBits( physDev->dev.hdc, bitmap, 0, abs(info->bmiHeader.biHeight),
pattern->bits.ptr, info, pattern->usage ); pattern->bits.ptr, info, pattern->usage );
......
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