Commit dc105628 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Make sure the cursor bitmaps are owned by x11drv.

parent 0f9dfb93
......@@ -1081,6 +1081,11 @@ static Cursor create_xlib_cursor( HDC hdc, const ICONINFOEXW *icon, int width, i
if (has_alpha)
{
/* make sure the bitmaps are owned by x11drv */
HBITMAP orig = SelectObject( hdc, icon->hbmMask );
SelectObject( hdc, xor_bitmap );
SelectObject( hdc, orig );
memset( mask_bits, 0, width_bytes * height );
for (y = 0, ptr = color_bits; y < height; y++)
for (x = 0; x < width; x++, ptr++)
......
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