File: mplayer_vo_x11.diff

package info (click to toggle)
kmplayer 1:0.10.0c-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,780 kB
  • ctags: 7,357
  • sloc: cpp: 28,777; sh: 9,933; ansic: 5,581; perl: 2,760; xml: 670; makefile: 153
file content (28 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- libvo/vo_x11.c.orig	Thu Dec 26 18:18:31 2002
+++ libvo/vo_x11.c	Thu Dec 26 19:58:49 2002
@@ -294,12 +294,12 @@
     bg=WhitePixel( mDisplay,mScreen );
     fg=BlackPixel( mDisplay,mScreen );
 
-    theCmap=vo_x11_create_colormap(&vinfo);
+    //theCmap=vo_x11_create_colormap(&vinfo);
 
     xswa.background_pixel=0;
     xswa.border_pixel=0;
-    xswa.colormap=theCmap;
-    xswamask=CWBackPixel | CWBorderPixel | CWColormap;
+    //xswa.colormap=theCmap;
+    xswamask=CWBackPixel | CWBorderPixel;// | CWColormap;
 
 #ifdef HAVE_XF86VM
     if ( vm )
@@ -321,6 +321,9 @@
     }
     else
      {
+    theCmap=vo_x11_create_colormap(&vinfo);
+    xswa.colormap=theCmap;
+    xswamask=CWBackPixel | CWBorderPixel | CWColormap;
       if ( vo_window == None )
        {
         vo_window=XCreateWindow( mDisplay,mRootWin,