]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/bitmap.cpp
compilation fix
[wxWidgets.git] / src / x11 / bitmap.cpp
index 138860acb52c489d0b3afabd8d558ad76da20b63..20a28054d496d5f05a0351077e7e8021d6a0b746 100644 (file)
@@ -614,6 +614,9 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
 
         GC gc = XCreateGC( xdisplay, (Pixmap) M_BMPDATA->m_pixmap, 0, NULL );
         XPutImage( xdisplay, (Pixmap) M_BMPDATA->m_pixmap, gc, data_image, 0, 0, 0, 0, width, height );
+#ifdef __WXDEBUG__
+       XSync(wxGlobalDisplay(), False);
+#endif
 
         XDestroyImage( data_image );
         XFreeGC( xdisplay, gc );