[MPlayer-cvslog] r33203 - trunk/gui/util/bitmap.c

ib subversion at mplayerhq.hu
Mon Apr 4 15:20:02 CEST 2011


Author: ib
Date: Mon Apr  4 15:20:02 2011
New Revision: 33203

Log:
Rename variable nothaveshape and invert logic.

That way it is easier to understand.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Mon Apr  4 15:02:56 2011	(r33202)
+++ trunk/gui/util/bitmap.c	Mon Apr  4 15:20:02 2011	(r33203)
@@ -232,7 +232,7 @@ int Convert32to1(txSample *in, txSample 
         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 @@ int Convert32to1(txSample *in, txSample 
                 tmp = (tmp >> 1) | 128;
             else {
                 tmp    = tmp >> 1;
-                buf[i] = nothaveshape = 0;
+                buf[i] = 0;
+                shaped = 1;
             }
 
             if (b++ == 7) {
@@ -255,7 +256,7 @@ int Convert32to1(txSample *in, txSample 
         if (b)
             out->Image[c] = tmp;
 
-        if (nothaveshape) {
+        if (!shaped) {
             free(out->Image);
             out->Image = NULL;
         }


More information about the MPlayer-cvslog mailing list