[gtk+/gtk-2-24] win32: GDIFlush before accessing pixmap bits



commit b2f91bcb8fa5ecaa444d2137b222def31550871c
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Nov 9 13:19:46 2011 +0100

    win32: GDIFlush before accessing pixmap bits

 gdk/win32/gdkcursor-win32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c
index d3d709a..11f32f6 100644
--- a/gdk/win32/gdkcursor-win32.c
+++ b/gdk/win32/gdkcursor-win32.c
@@ -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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]