Alexandre Julliard : user32: Don' t use the window surface when the pixel format was set.
Alexandre Julliard
julliard at winehq.org
Wed Oct 10 15:07:51 CDT 2012
Module: wine
Branch: master
Commit: 77b9ec8cd6079bb4602f002a4a25003b551ab46b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=77b9ec8cd6079bb4602f002a4a25003b551ab46b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 10 12:46:14 2012 +0200
user32: Don't use the window surface when the pixel format was set.
---
dlls/user32/painting.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 2a634fb..7d106bb 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -165,7 +165,8 @@ static void update_visible_region( struct dce *dce )
if ((win = WIN_GetPtr( top_win )) && win != WND_DESKTOP && win != WND_OTHER_PROCESS)
{
- surface = win->surface;
+ /* don't use a surface to paint the client area of OpenGL windows */
+ if (!win->pixel_format || (flags & DCX_WINDOW)) surface = win->surface;
if (surface) window_surface_add_ref( surface );
WIN_ReleasePtr( win );
}
More information about the wine-cvs
mailing list