Alexandre Julliard : winex11: Create a surface even for OpenGL windows, to allow painting the non-client area.
Alexandre Julliard
julliard at winehq.org
Wed Oct 10 15:07:51 CDT 2012
Module: wine
Branch: master
Commit: 47983d819fddb566883e8d45c631a714f7ab8922
URL: http://source.winehq.org/git/wine.git/?a=commit;h=47983d819fddb566883e8d45c631a714f7ab8922
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 10 12:46:37 2012 +0200
winex11: Create a surface even for OpenGL windows, to allow painting the non-client area.
---
dlls/winex11.drv/opengl.c | 14 --------------
dlls/winex11.drv/window.c | 1 -
dlls/winex11.drv/x11drv.h | 1 -
3 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index b19f334..ac6f953 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1114,15 +1114,6 @@ static void release_gl_drawable( struct gl_drawable *gl )
if (gl) LeaveCriticalSection( &context_section );
}
-BOOL has_gl_drawable( HWND hwnd )
-{
- struct gl_drawable *gl;
-
- gl = get_gl_drawable( hwnd, 0 );
- release_gl_drawable( gl );
- return gl != NULL;
-}
-
static GLXContext create_glxcontext(Display *display, struct wgl_context *context, GLXContext shareList)
{
GLXContext ctx;
@@ -3081,11 +3072,6 @@ struct opengl_funcs *get_glx_driver( UINT version )
return NULL;
}
-BOOL has_gl_drawable( HWND hwnd )
-{
- return FALSE;
-}
-
void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_rect )
{
}
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 386db2c..b0fc9a0 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2060,7 +2060,6 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
if (data->embedded) goto done;
if (data->whole_window == root_window) goto done;
- if (has_gl_drawable( hwnd )) goto done;
if (!client_side_graphics && !layered) goto done;
surface_rect = get_surface_rect( visible_rect );
diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 8e114a2..2f34098 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -567,7 +567,6 @@ extern void release_win_data( struct x11drv_win_data *data ) DECLSPEC_HIDDEN;
extern Window X11DRV_get_whole_window( HWND hwnd ) DECLSPEC_HIDDEN;
extern XIC X11DRV_get_ic( HWND hwnd ) DECLSPEC_HIDDEN;
-extern BOOL has_gl_drawable( HWND hwnd ) DECLSPEC_HIDDEN;
extern void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_rect ) DECLSPEC_HIDDEN;
extern void destroy_gl_drawable( HWND hwnd ) DECLSPEC_HIDDEN;
More information about the wine-cvs
mailing list