[MPlayer-cvslog] r37107 - in trunk/gui/ui: render.c render.h

ib subversion at mplayerhq.hu
Sat Mar 29 14:49:26 CET 2014


Author: ib
Date: Sat Mar 29 14:49:26 2014
New Revision: 37107

Log:
Rename parameter.

It isn't the number of items but the last index in use.

Rewrite the condition in order ro reflect this.

Modified:
   trunk/gui/ui/render.c
   trunk/gui/ui/render.h

Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c	Fri Mar 28 20:03:59 2014	(r37106)
+++ trunk/gui/ui/render.c	Sat Mar 29 14:49:26 2014	(r37107)
@@ -396,7 +396,7 @@ static void PutImage(int x, int y, uint3
     }
 }
 
-void RenderAll(wsWindow *window, guiItem *items, int nrItems, char *drawbuf)
+void RenderAll(wsWindow *window, guiItem *items, int till, char *drawbuf)
 {
     uint32_t *db;
     guiItem *item;
@@ -406,7 +406,7 @@ void RenderAll(wsWindow *window, guiItem
     db = (uint32_t *)drawbuf;
     dw = window->Width;
 
-    for (i = 0; i < nrItems + 1; i++) {
+    for (i = 0; i <= till; i++) {
         item = &items[i];
 
         switch (item->pressed) {

Modified: trunk/gui/ui/render.h
==============================================================================
--- trunk/gui/ui/render.h	Fri Mar 28 20:03:59 2014	(r37106)
+++ trunk/gui/ui/render.h	Sat Mar 29 14:49:26 2014	(r37107)
@@ -22,6 +22,6 @@
 #include "gui/app/app.h"
 #include "gui/wm/ws.h"
 
-void RenderAll(wsWindow *window, guiItem *items, int nrItems, char *drawbuf);
+void RenderAll(wsWindow *window, guiItem *items, int till, char *drawbuf);
 
 #endif /* MPLAYER_GUI_RENDER_H */


More information about the MPlayer-cvslog mailing list