[MPlayer-cvslog] r37108 - trunk/gui/ui/render.c
ib
subversion at mplayerhq.hu
Sat Mar 29 14:59:45 CET 2014
Author: ib
Date: Sat Mar 29 14:59:45 2014
New Revision: 37108
Log:
Remove braces.
As a result, move up variable declarations.
Modified:
trunk/gui/ui/render.c
Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c Sat Mar 29 14:49:26 2014 (r37107)
+++ trunk/gui/ui/render.c Sat Mar 29 14:59:45 2014 (r37108)
@@ -401,7 +401,9 @@ void RenderAll(wsWindow *window, guiItem
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 @@ void RenderAll(wsWindow *window, guiItem
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 @@ void RenderAll(wsWindow *window, guiItem
}
image = fntTextRender(item, x, t);
- }
if (image)
PutImage(item->x, item->y, db, dw, image, 1, 0, True);
More information about the MPlayer-cvslog
mailing list