changeset 1713:ab35bee402ff

Do not overwrite memory in the width%8 == 0 case
author jkeil
date Mon, 27 Aug 2001 15:25:11 +0000
parents 7c1643fb989a
children b42b78566029
files Gui/skin/skin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 );