changeset 33127:6328f0baeaa9

Don't change original image during conversion.
author ib
date Mon, 04 Apr 2011 18:35:25 +0000
parents a5dc70e2cda3
children 64d19aaf624a
files gui/util/bitmap.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 18:25:11 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 18:35:25 2011 +0000
@@ -242,10 +242,8 @@
 
         if (buf[i] != transparent)
             tmp |= 0x80;
-        else {
-            buf[i] = 0;
+        else
             shaped = 1;
-        }
 
         if (++b == 8) {
             out->Image[c++] = tmp;