win32: GDIFlush before accessing pixmap bits

This commit is contained in:
Alexander Larsson 2011-11-09 13:19:46 +01:00
parent 013c9169f6
commit b2f91bcb8f

View File

@ -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);