]> git.pld-linux.org Git - packages/wine.git/commitdiff
- Fix for dga in blizzard games (warcraft, starcraft)
authorciril <ciril@pld-linux.org>
Sun, 13 Jul 2003 20:28:26 +0000 (20:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wine-dga.patch -> 1.1

wine-dga.patch [new file with mode: 0644]

diff --git a/wine-dga.patch b/wine-dga.patch
new file mode 100644 (file)
index 0000000..8fb8fe3
--- /dev/null
@@ -0,0 +1,57 @@
+--- wine-20030508/dlls/x11drv/event.c.orig     Tue Jul  8 00:03:21 2003
++++ wine-20030508/dlls/x11drv/event.c  Tue Jul  8 00:04:10 2003
+@@ -131,25 +131,38 @@
+  */
+ static int process_events( struct x11drv_thread_data *data )
+ {
+-    XEvent event;
+-    int count = 0;
++XEvent event;
++int count = 0;
++
++wine_tsx11_lock();
++
++if( DGAUsed ) {
++
++while ( XPending( gdi_display ) )
++{
++XNextEvent( gdi_display, &event );
++wine_tsx11_unlock();
++EVENT_ProcessEvent( &event );
++count++;
++wine_tsx11_lock();
++}
++
++} else {
++
++while ( XPending( data->display ) )
++{
++XNextEvent( data->display, &event );
++wine_tsx11_unlock();
++EVENT_ProcessEvent( &event );
++count++;
++wine_tsx11_lock();
++}
+-    wine_tsx11_lock();
+-    while ( XPending( data->display ) )
+-    {
+-        Bool ignore;
+-
+-        XNextEvent( data->display, &event );
+-        ignore = XFilterEvent( &event, None );
+-        wine_tsx11_unlock();
+-        if (!ignore) EVENT_ProcessEvent( &event );
+-        count++;
+-        wine_tsx11_lock();
+-    }
+-    wine_tsx11_unlock();
+-    return count;
+ }
++wine_tsx11_unlock();
++return count;
++} 
+ /***********************************************************************
+  *           MsgWaitForMultipleObjectsEx   (X11DRV.@)
This page took 0.053074 seconds and 4 git commands to generate.