diff --git a/gfx/drivers/xshm_gfx.c b/gfx/drivers/xshm_gfx.c index 8b3dd35d0e..2bfb18b7c3 100644 --- a/gfx/drivers/xshm_gfx.c +++ b/gfx/drivers/xshm_gfx.c @@ -54,6 +54,7 @@ static void *xshm_gfx_init(const video_info_t *video, { xshm_t* xshm = (xshm_t*)malloc(sizeof(xshm_t)); Window parent; + XSetWindowAttributes attributes; XInitThreads(); @@ -72,7 +73,6 @@ static void *xshm_gfx_init(const video_info_t *video, #else parent = video->parent; #endif - XSetWindowAttributes attributes; attributes.border_pixel=0; g_x11_win = XCreateWindow(g_x11_dpy, parent, 0, 0, video->width, video->height,