diff gui/util/bitmap.c @ 33125:9c178cf14a61

Get rid of else-block to improve readability.
author ib
date Mon, 04 Apr 2011 18:23:19 +0000
parents 1d81476c0d1e
children a5dc70e2cda3
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 16:02:59 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 18:23:19 2011 +0000
@@ -233,7 +233,8 @@
     if (!out->Image) {
         mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] not enough memory: %lu\n", out->ImageSize);
         return 0;
-    } else {
+    }
+
         buf = (uint32_t *)in->Image;
 
         for (i = 0; i < out->Width * out->Height; i++) {
@@ -259,7 +260,6 @@
 
         if (!shaped)
             bpFree(out);
-    }
 
     return 1;
 }