mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
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:
+3
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user