[MPlayer-cvslog] r33525 - trunk/libvo/x11_common.c
iive
subversion at mplayerhq.hu
Mon May 30 01:28:56 CEST 2011
Author: iive
Date: Mon May 30 01:28:55 2011
New Revision: 33525
Log:
Create empty vo_gc graphic context instead of one with
underfined foreground color.
The code that uses vo_gc already employs XSetForeground()/XSetBackground()
to change the context accordingly.
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Mon May 30 01:05:57 2011 (r33524)
+++ trunk/libvo/x11_common.c Mon May 30 01:28:55 2011 (r33525)
@@ -1075,7 +1075,6 @@ void vo_x11_create_vo_window(XVisualInfo
Colormap col_map,
const char *classname, const char *title)
{
- XGCValues xgcv;
if (WinID >= 0) {
vo_fs = flags & VOFLAG_FULLSCREEN;
vo_window = WinID ? (Window)WinID : mRootWin;
@@ -1157,7 +1156,8 @@ void vo_x11_create_vo_window(XVisualInfo
final:
if (vo_gc != None)
XFreeGC(mDisplay, vo_gc);
- vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv);
+ vo_gc = XCreateGC(mDisplay, vo_window, 0, NULL);
+
XSync(mDisplay, False);
vo_mouse_autohide = 1;
}
More information about the MPlayer-cvslog
mailing list