Mercurial > mplayer.hg
diff Gui/skin/skin.c @ 1713:ab35bee402ff
Do not overwrite memory in the width%8 == 0 case
author | jkeil |
---|---|
date | Mon, 27 Aug 2001 15:25:11 +0000 |
parents | d237c5d4b216 |
children | d6c99f70449e |
line wrap: on
line diff
--- a/Gui/skin/skin.c Mon Aug 27 15:02:37 2001 +0000 +++ b/Gui/skin/skin.c Mon Aug 27 15:25:11 2001 +0000 @@ -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 );