http://bugs.winehq.org/show_bug.cgi?id=58488
--- Comment #7 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to MarcinZw from comment #6)
The following patch fixes the screen update issue in Colin McRae Rally 2 when emulating a virtual desktop. It might not cover all cases.
--- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1462,7 +1462,7 @@ static BOOL x11drv_surface_swap( struct opengl_drawable *base ) if (pglXWaitForSbcOML) pglXWaitForSbcOML( gdi_display, gl->drawable, target_sbc, &ust, &msc, &sbc ); }
- if (InterlockedCompareExchange( &base->client->offscreen, 0, 0 ))
- //if (InterlockedCompareExchange( &base->client->offscreen, 0, 0 )) { if (!pglXWaitForSbcOML) XFlush( gdi_display ); client_surface_present( base->client, gl->hdc );
This also fixes the black screen issue in Bejeweled 3.