aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 16:34:44 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 16:34:44 +0000
commit08367541bcaeeab89a2d2910001b1318e79dab69 (patch)
tree58b7ce3201279662aaa5fd6f6183459a8a7e4357
parent60b5834701211b51e33759480071d2eff1c59b8b (diff)
vo_x11: do not replace the vo_gc created by the Gui.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27915 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_x11.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 29e4853ea9..2bc17543de 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -441,6 +441,9 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
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 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
#endif
}
- if (vo_gc != None)
- XFreeGC(mDisplay, vo_gc);
- vo_gc = XCreateGC(mDisplay, vo_window, 0L, &xgcv);
-
if (myximage)
{
freeMyXImage();