changeset 33116:00cea1a6740a

Rename variable nothaveshape and invert logic. That way it is easier to understand.
author ib
date Mon, 04 Apr 2011 13:20:02 +0000
parents c2da7b725fd8
children 8db0a5bf65d9
files gui/util/bitmap.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 13:02:56 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 13:20:02 2011 +0000
@@ -232,7 +232,7 @@
         int i, b, c = 0;
         uint32_t *buf     = NULL;
         unsigned char tmp = 0;
-        int nothaveshape  = 1;
+        int shaped = 0;
 
         buf = (uint32_t *)in->Image;
 
@@ -241,7 +241,8 @@
                 tmp = (tmp >> 1) | 128;
             else {
                 tmp    = tmp >> 1;
-                buf[i] = nothaveshape = 0;
+                buf[i] = 0;
+                shaped = 1;
             }
 
             if (b++ == 7) {
@@ -255,7 +256,7 @@
         if (b)
             out->Image[c] = tmp;
 
-        if (nothaveshape) {
+        if (!shaped) {
             free(out->Image);
             out->Image = NULL;
         }