changeset 37012:79c50282f8ab

Remove braces. As a result, move up variable declarations.
author ib
date Sat, 29 Mar 2014 13:59:45 +0000
parents 322951bebfd6
children 11d2d0444f42
files gui/ui/render.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/render.c	Sat Mar 29 13:49:26 2014 +0000
+++ b/gui/ui/render.c	Sat Mar 29 13:59:45 2014 +0000
@@ -401,7 +401,9 @@
     uint32_t *db;
     guiItem *item;
     guiImage *image = NULL;
-    int dw, i, index;
+    int dw, i, index, x;
+    char *t;
+    unsigned int d;
 
     db = (uint32_t *)drawbuf;
     dw = window->Width;
@@ -459,10 +461,7 @@
             break;
 
         case itDLabel:
-        {
-            int x;
-            unsigned int d;
-            char *t = TranslateVariables(item->label);
+            t = TranslateVariables(item->label);
 
             if (!item->text || (strcmp(item->text, t) != 0)) {
                 free(item->text);
@@ -492,7 +491,6 @@
             }
 
             image = fntTextRender(item, x, t);
-        }
 
             if (image)
                 PutImage(item->x, item->y, db, dw, image, 1, 0, True);