From b4afbf98cf29cd1beb24d2958d1cc5243f70b5a9 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 25 Jan 2012 00:08:01 +0100 Subject: [PATCH] winex11: Don't put the GL drawable offscreen. --- dlls/winex11.drv/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 48ba00049ee..fcf5e0e167c 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -591,7 +591,7 @@ static BOOL set_win_format( HWND hwnd, XID fbconfig_id ) XInstallColormap(gdi_display, attrib.colormap); if(data->gl_drawable) XDestroyWindow(gdi_display, data->gl_drawable); - data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, -w, 0, w, h, 0, + data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, 0, 0, w, h, 0, vis->depth, InputOutput, vis->visual, CWColormap | CWOverrideRedirect, &attrib); @@ -669,7 +669,7 @@ static void sync_gl_drawable(struct x11drv_win_data *data) if(usexcomposite) { wine_tsx11_lock(); - XMoveResizeWindow(gdi_display, data->gl_drawable, -w, 0, w, h); + XMoveResizeWindow(gdi_display, data->gl_drawable, 0, 0, w, h); wine_tsx11_unlock(); return; }