[MPlayer-cvslog] r37090 - in trunk/gui/ui: render.c render.h
ib
subversion at mplayerhq.hu
Thu Mar 27 14:09:45 CET 2014
Author: ib
Date: Thu Mar 27 14:09:44 2014
New Revision: 37090
Log:
Cosmetic: Rename same variables in RenderAll().
Modified:
trunk/gui/ui/render.c
trunk/gui/ui/render.h
Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c Thu Mar 27 14:05:43 2014 (r37089)
+++ trunk/gui/ui/render.c Thu Mar 27 14:09:44 2014 (r37090)
@@ -422,36 +422,36 @@ static void SinglePhasePutImage(guiImage
}
}
-void RenderAll(wsWindow *window, guiItem *Items, int nrItems, char *db)
+void RenderAll(wsWindow *window, guiItem *items, int nrItems, char *drawbuf)
{
guiItem *item;
guiImage *image = NULL;
- int i, ofs;
+ int i, index;
- image_buffer = db;
+ image_buffer = drawbuf;
drawbuf_width = window->Width;
for (i = 0; i < nrItems + 1; i++) {
- item = &Items[i];
+ item = &items[i];
switch (item->pressed) {
case btnPressed:
- ofs = 0;
+ index = 0;
break;
case btnReleased:
- ofs = 1;
+ index = 1;
break;
default:
- ofs = 2;
+ index = 2;
break;
}
switch (item->type) {
case itButton:
- PutImage(&item->Bitmap, item->x, item->y, 3, ofs);
+ PutImage(&item->Bitmap, item->x, item->y, 3, index);
break;
case itPimage:
@@ -470,13 +470,13 @@ void RenderAll(wsWindow *window, guiItem
else
PutImage(&item->Bitmap, item->x, item->y, item->numphases, (item->numphases - 1) * (item->value / 100.0));
- PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0), item->y, 3, ofs);
+ PutImage(&item->Mask, item->x + (item->width - item->pwidth) * (item->value / 100.0), item->y, 3, index);
break;
case itVPotmeter:
PutImage(&item->Bitmap, item->x, item->y, item->numphases, item->numphases * (1.0 - item->value / 100.0));
- PutImage(&item->Mask, item->x, item->y + (item->height - item->pheight) * (1.0 - item->value / 100.0), 3, ofs);
+ PutImage(&item->Mask, item->x, item->y + (item->height - item->pheight) * (1.0 - item->value / 100.0), 3, index);
break;
case itSLabel:
@@ -534,5 +534,5 @@ void RenderAll(wsWindow *window, guiItem
}
}
- wsImageRender(window, db);
+ wsImageRender(window, drawbuf);
}
Modified: trunk/gui/ui/render.h
==============================================================================
--- trunk/gui/ui/render.h Thu Mar 27 14:05:43 2014 (r37089)
+++ trunk/gui/ui/render.h Thu Mar 27 14:09:44 2014 (r37090)
@@ -22,6 +22,6 @@
#include "gui/app/app.h"
#include "gui/wm/ws.h"
-void RenderAll(wsWindow *window, guiItem *Items, int nrItems, char *db);
+void RenderAll(wsWindow *window, guiItem *items, int nrItems, char *drawbuf);
#endif /* MPLAYER_GUI_RENDER_H */
More information about the MPlayer-cvslog
mailing list