# HG changeset patch # User ib # Date 1301923202 0 # Node ID 00cea1a6740ab55e9909615f6165aaee70b4d01b # Parent c2da7b725fd8b8ddc5695cc4815ed274570c00f9 Rename variable nothaveshape and invert logic. That way it is easier to understand. diff -r c2da7b725fd8 -r 00cea1a6740a gui/util/bitmap.c --- 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; }