[MPlayer-cvslog] r37111 - trunk/gui/ui/render.c

ib subversion at mplayerhq.hu
Sat Mar 29 15:23:55 CET 2014


Author: ib
Date: Sat Mar 29 15:23:55 2014
New Revision: 37111

Log:
Cosmetic: Rename variable.

This should make its purpose more obvious.

Modified:
   trunk/gui/ui/render.c

Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c	Sat Mar 29 15:21:45 2014	(r37110)
+++ trunk/gui/ui/render.c	Sat Mar 29 15:23:55 2014	(r37111)
@@ -402,7 +402,7 @@ void RenderAll(wsWindow *window, guiItem
     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 @@ void RenderAll(wsWindow *window, guiItem
 
         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 @@ void RenderAll(wsWindow *window, guiItem
                 }
             }
 
-            image = fntTextRender(item, x, t);
+            image = fntTextRender(item, x, trans);
 
             if (image)
                 PutImage(item->x, item->y, db, dw, image, 1, 0, True);


More information about the MPlayer-cvslog mailing list