Gerald Pfeifer : winex11: Push down variable attrib down in create_gl_drawable.
Alexandre Julliard
julliard at winehq.org
Mon Jan 28 13:43:20 CST 2013
Module: wine
Branch: master
Commit: e835f034fb1eb59ec6fe16e8ff05feccc2a656bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e835f034fb1eb59ec6fe16e8ff05feccc2a656bb
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sat Jan 26 02:07:13 2013 +0100
winex11: Push down variable attrib down in create_gl_drawable.
---
dlls/winex11.drv/opengl.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index dded333..ee62402 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1222,8 +1222,6 @@ static void free_gl_drawable( struct gl_drawable *gl )
*/
static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl )
{
- XSetWindowAttributes attrib;
-
gl->drawable = 0;
if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow()) /* top-level window */
@@ -1241,6 +1239,7 @@ static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl )
else if(usexcomposite)
{
static Window dummy_parent;
+ XSetWindowAttributes attrib;
attrib.override_redirect = True;
if (!dummy_parent)
More information about the wine-cvs
mailing list