[Mplayer-cvslog] CVS: main/Gui/skin skin.c,1.1,1.2

Jürgen Keil jkeil at mplayer.dev.hu
Mon Aug 27 17:25:14 CEST 2001


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

Modified Files:
	skin.c 
Log Message:
Do not overwrite memory in the width%8 == 0 case


Index: skin.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/skin.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- skin.c	25 Aug 2001 21:04:29 -0000	1.1
+++ skin.c	27 Aug 2001 15:25:11 -0000	1.2
@@ -148,7 +148,7 @@
         else { tmp=tmp >> 1; buf[i]=0; }
        if ( b++ == 7 ) { defList->main.Mask.Image[c++]=tmp; tmp=0; b=0; }
       }
-     defList->main.Mask.Image[c++]=tmp;
+     if (b) defList->main.Mask.Image[c++]=tmp;
     }
     #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