Commit 7aff865e authored by Nicholas Niro's avatar Nicholas Niro Committed by Alexandre Julliard

winex11.drv: Add proper initialization for border_pixel.

parent 80354e50
...@@ -311,6 +311,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void) ...@@ -311,6 +311,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
attr.override_redirect = True; attr.override_redirect = True;
attr.colormap = None; attr.colormap = None;
attr.border_pixel = 0;
wine_tsx11_lock(); wine_tsx11_lock();
...@@ -337,7 +338,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void) ...@@ -337,7 +338,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
if (vis->visual != DefaultVisual( gdi_display, vis->screen )) if (vis->visual != DefaultVisual( gdi_display, vis->screen ))
attr.colormap = XCreateColormap( gdi_display, root, vis->visual, AllocNone ); attr.colormap = XCreateColormap( gdi_display, root, vis->visual, AllocNone );
if ((win = XCreateWindow( gdi_display, root, -1, -1, 1, 1, 0, vis->depth, InputOutput, if ((win = XCreateWindow( gdi_display, root, -1, -1, 1, 1, 0, vis->depth, InputOutput,
vis->visual, CWOverrideRedirect | CWColormap, &attr ))) vis->visual, CWBorderPixel | CWOverrideRedirect | CWColormap, &attr )))
XMapWindow( gdi_display, win ); XMapWindow( gdi_display, win );
else else
win = root; win = root;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment