# HG changeset patch # User reimar # Date 1226766884 0 # Node ID 573ee864ce9ad5161e9e5ff2e8d3ada9aba02a1d # Parent a28ca0971d9adbd02dde79e22d5621c39fc0a941 vo_x11: do not replace the vo_gc created by the Gui. diff -r a28ca0971d9a -r 573ee864ce9a libvo/vo_x11.c --- a/libvo/vo_x11.c Sat Nov 15 15:50:47 2008 +0000 +++ b/libvo/vo_x11.c Sat Nov 15 16:34:44 2008 +0000 @@ -441,6 +441,9 @@ flags, theCmap, "x11", title); } + if (vo_gc != None) + XFreeGC(mDisplay, vo_gc); + vo_gc = XCreateGC(mDisplay, vo_window, 0L, &xgcv); XSync(mDisplay, False); vo_x11_selectinput_witherr(mDisplay, vo_window, @@ -464,10 +467,6 @@ #endif } - if (vo_gc != None) - XFreeGC(mDisplay, vo_gc); - vo_gc = XCreateGC(mDisplay, vo_window, 0L, &xgcv); - if (myximage) { freeMyXImage();