changeset 27881:573ee864ce9a

vo_x11: do not replace the vo_gc created by the Gui.
author reimar
date Sat, 15 Nov 2008 16:34:44 +0000
parents a28ca0971d9a
children a875d666fee2
files libvo/vo_x11.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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();