[Mplayer-cvslog] CVS: main/Gui/skin skin.c,1.7,1.8

Zoltan Ponekker pontscho at mplayer.dev.hu
Mon Nov 5 18:00:44 CET 2001


Update of /cvsroot/mplayer/main/Gui/skin
In directory mplayer:/var/tmp.root/cvs-serv948/Gui/skin

Modified Files:
	skin.c 
Log Message:
fix small xshape bug

Index: skin.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/skin.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- skin.c	1 Oct 2001 09:30:46 -0000	1.7
+++ skin.c	5 Nov 2001 17:00:42 -0000	1.8
@@ -132,6 +132,7 @@
    defList->main.width=defList->main.Bitmap.Width;
    defList->main.height=defList->main.Bitmap.Height;
    #ifdef HAVE_XSHAPE
+/*
     defList->main.Mask.Width=defList->main.Bitmap.Width;
     defList->main.Mask.Height=defList->main.Bitmap.Height;
     defList->main.Mask.BPP=1;
@@ -148,7 +149,17 @@
        if ( b++ == 7 ) { defList->main.Mask.Image[c++]=tmp; tmp=b=0; }
       }
      if ( b ) defList->main.Mask.Image[c]=tmp;
-     if ( nothaveshape ) { free( defList->main.Mask.Image ); defList->main.Mask.Image=NULL; }
+//     if ( nothaveshape ) { free( defList->main.Mask.Image ); defList->main.Mask.Image=NULL; }
+    }
+*/
+    Convert32to1( &defList->main.Bitmap,&defList->main.Mask,0x00ff00ff );
+    {
+     if ( defList->main.Mask.Image != NULL )
+      {
+       txSample d;
+       Convert1to32( &defList->main.Mask,&d );
+       tgaWriteTexture( "debug.tga",&d );
+      }
     }
     #ifdef DEBUG
      dbprintf( 3,"[skin]  mask: %dx%d\n",defList->main.Mask.Width,defList->main.Mask.Height );




More information about the MPlayer-cvslog mailing list