forked from AuroraMiddleware/gtk
win32: Make flush/sync work like in X
gdk_flush() should gdk_display_sync() on all open displays. Both for display_flush and display_sync it seems useful to call GdiFlush, but we don't have anything extra to do for display_sync, as there is no inherent roundtrip on win32. This should close bug #84314
This commit is contained in:
parent
8588944cb9
commit
47095f97d2
@ -3652,18 +3652,7 @@ gdk_screen_broadcast_client_message (GdkScreen *screen,
|
||||
void
|
||||
gdk_flush (void)
|
||||
{
|
||||
#if 0
|
||||
MSG msg;
|
||||
|
||||
/* Process all messages currently available */
|
||||
while (PeekMessageW (&msg, NULL, 0, 0, PM_REMOVE))
|
||||
{
|
||||
TranslateMessage (&msg);
|
||||
DispatchMessageW (&msg);
|
||||
}
|
||||
#endif
|
||||
|
||||
GdiFlush ();
|
||||
gdk_display_sync (_gdk_display);
|
||||
}
|
||||
|
||||
void
|
||||
@ -3673,9 +3662,7 @@ gdk_display_sync (GdkDisplay * display)
|
||||
|
||||
g_return_if_fail (display == _gdk_display);
|
||||
|
||||
/* Process all messages currently available */
|
||||
while (PeekMessageW (&msg, NULL, 0, 0, PM_REMOVE))
|
||||
DispatchMessageW (&msg);
|
||||
GdiFlush ();
|
||||
}
|
||||
|
||||
void
|
||||
@ -3683,7 +3670,7 @@ gdk_display_flush (GdkDisplay * display)
|
||||
{
|
||||
g_return_if_fail (display == _gdk_display);
|
||||
|
||||
/* Nothing */
|
||||
GdiFlush ();
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user