changeset 33437:5b1120ddd033

Create empty vo_gc graphic context instead of one with undefined foreground color. The code that uses vo_gc already employs XSetForeground()/XSetBackground() to change the context accordingly.
author iive
date Sun, 29 May 2011 23:28:55 +0000
parents 3c93e23b8093
children bb77e30eabb9
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Sun May 29 23:05:57 2011 +0000
+++ b/libvo/x11_common.c	Sun May 29 23:28:55 2011 +0000
@@ -1075,7 +1075,6 @@
                              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 @@
 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;
 }