changeset 33126:a5dc70e2cda3

Cosmetic: Adjust indent.
author ib
date Mon, 04 Apr 2011 18:25:11 +0000
parents 9c178cf14a61
children 6328f0baeaa9
files gui/util/bitmap.c
diffstat 1 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 18:23:19 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 18:25:11 2011 +0000
@@ -235,31 +235,31 @@
         return 0;
     }
 
-        buf = (uint32_t *)in->Image;
+    buf = (uint32_t *)in->Image;
 
-        for (i = 0; i < out->Width * out->Height; i++) {
-            tmp >>= 1;
+    for (i = 0; i < out->Width * out->Height; i++) {
+        tmp >>= 1;
 
-            if (buf[i] != transparent)
-                tmp |= 0x80;
-            else {
-                buf[i] = 0;
-                shaped = 1;
-            }
-
-            if (++b == 8) {
-                out->Image[c++] = tmp;
-                tmp = b = 0;
-            }
+        if (buf[i] != transparent)
+            tmp |= 0x80;
+        else {
+            buf[i] = 0;
+            shaped = 1;
         }
 
-        mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] 1 bpp conversion size: %lu\n", out->ImageSize);
+        if (++b == 8) {
+            out->Image[c++] = tmp;
+            tmp = b = 0;
+        }
+    }
 
-        if (b)
-            out->Image[c] = tmp;
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] 1 bpp conversion size: %lu\n", out->ImageSize);
 
-        if (!shaped)
-            bpFree(out);
+    if (b)
+        out->Image[c] = tmp;
+
+    if (!shaped)
+        bpFree(out);
 
     return 1;
 }