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
This commit is contained in:
reimar
2008-11-15 16:34:44 +00:00
parent 60b5834701
commit 08367541bc
+3 -4
View File
@@ -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();