changeset 37015:68066d733c76

Cosmetic: Rename variable. This should make its purpose more obvious.
author ib
date Sat, 29 Mar 2014 14:23:55 +0000
parents 01b3cd8a1e76
children 45663ee3a990
files gui/ui/render.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/render.c	Sat Mar 29 14:21:45 2014 +0000
+++ b/gui/ui/render.c	Sat Mar 29 14:23:55 2014 +0000
@@ -402,7 +402,7 @@
     guiItem *item;
     guiImage *image = NULL;
     int dw, i, index, x;
-    char *t;
+    char *trans;
     unsigned int d;
 
     db = (uint32_t *)drawbuf;
@@ -462,12 +462,12 @@
 
         case itDLabel:
 
-            t = TranslateVariables(item->label);
+            trans = TranslateVariables(item->label);
 
-            if (!item->text || (strcmp(item->text, t) != 0)) {
+            if (!item->text || (strcmp(item->text, trans) != 0)) {
                 free(item->text);
-                item->text      = strdup(t);
-                item->textwidth = fntTextWidth(item->fontid, t);
+                item->text      = strdup(trans);
+                item->textwidth = fntTextWidth(item->fontid, trans);
                 item->starttime = GetTimerMS();
                 item->last_x    = 0;
             }
@@ -491,7 +491,7 @@
                 }
             }
 
-            image = fntTextRender(item, x, t);
+            image = fntTextRender(item, x, trans);
 
             if (image)
                 PutImage(item->x, item->y, db, dw, image, 1, 0, True);