http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f9dfb9
)
winex11: Make sure the cursor bitmaps are owned by x11drv.
author
Alexandre Julliard
<julliard@winehq.org>
Wed, 14 Sep 2011 12:53:59 +0000
(14:53 +0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 14 Sep 2011 12:53:59 +0000
(14:53 +0200)
dlls/winex11.drv/mouse.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/winex11.drv/mouse.c
b/dlls/winex11.drv/mouse.c
index d70f152ce381f9da857497289247f1b141f4a68d..0ba57d195bd0b8eebc6911bccca852aaa0968c7e 100644
(file)
--- a/
dlls/winex11.drv/mouse.c
+++ b/
dlls/winex11.drv/mouse.c
@@
-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++)