mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
win32: GDIFlush before accessing pixmap bits
This commit is contained in:
parent
013c9169f6
commit
b2f91bcb8f
@ -201,6 +201,9 @@ gdk_cursor_new_from_pixmap (GdkPixmap *source,
|
||||
g_return_val_if_fail (fg != NULL, NULL);
|
||||
g_return_val_if_fail (bg != NULL, NULL);
|
||||
|
||||
/* Flush outstanding GDI ops before accessing pixmap->bits */
|
||||
GdiFlush ();
|
||||
|
||||
source_impl = GDK_PIXMAP_IMPL_WIN32 (GDK_PIXMAP_OBJECT (source)->impl);
|
||||
mask_impl = GDK_PIXMAP_IMPL_WIN32 (GDK_PIXMAP_OBJECT (mask)->impl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user