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

ib subversion at mplayerhq.hu
Thu Oct 20 14:12:51 CEST 2011


Author: ib
Date: Thu Oct 20 14:12:51 2011
New Revision: 34219

Log:
Cosmetic: Adjust indent.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Thu Oct 20 14:05:47 2011	(r34218)
+++ trunk/gui/util/bitmap.c	Thu Oct 20 14:12:51 2011	(r34219)
@@ -291,31 +291,31 @@ int bpRenderMask(const guiImage *in, gui
     buf = (uint32_t *)in->Image;
 
     for (y = 0; y < in->Height; y++) {
-    for (x = 0; x < in->Width; x++) {
-        if (!IS_TRANSPARENT(buf[i]))
-            tmp |= b;
-        else {
-            buf[i] = 0;
-            shaped = 1;
-        }
+        for (x = 0; x < in->Width; x++) {
+            if (!IS_TRANSPARENT(buf[i]))
+                tmp |= b;
+            else {
+                buf[i] = 0;
+                shaped = 1;
+            }
 
-        i++;
-        b <<= 1;
+            i++;
+            b <<= 1;
 
-        if (b == 0) {
+            if (b == 0) {
+                out->Image[c++] = tmp;
+                tmp = 0;
+                b   = 1;
+            }
+        }
+
+        if (b != 1) {
             out->Image[c++] = tmp;
             tmp = 0;
             b   = 1;
         }
     }
 
-    if (b != 1) {
-        out->Image[c++] = tmp;
-        tmp = 0;
-        b   = 1;
-    }
-    }
-
     if (!shaped)
         bpFree(out);
 


More information about the MPlayer-cvslog mailing list