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

ib subversion at mplayerhq.hu
Fri Mar 28 19:56:56 CET 2014


Author: ib
Date: Fri Mar 28 19:56:56 2014
New Revision: 37105

Log:
Remove variable.

Directly use img->Width instead of storing it in iw.

Modified:
   trunk/gui/ui/render.c

Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c	Fri Mar 28 19:33:20 2014	(r37104)
+++ trunk/gui/ui/render.c	Fri Mar 28 19:56:56 2014	(r37105)
@@ -357,7 +357,7 @@ MMMM_SS:        snprintf(trans, sizeof(t
 
 static void PutImage(int x, int y, uint32_t *drawbuf, int drawbuf_width, guiImage *img, int parts, int index, int below)
 {
-    register int i, iw, ic, yc;
+    register int i, ic, yc;
     register uint32_t pixel;
     int xlimit, ylimit, ix, iy;
     uint32_t *pixels;
@@ -373,8 +373,6 @@ static void PutImage(int x, int y, uint3
         i      = (img->Width / parts) * index;
         xlimit = x + img->Width / parts;
         ylimit = y + img->Height;
-
-        iw = img->Width;
     }
 
     pixels = (uint32_t *)img->Image;
@@ -392,7 +390,7 @@ static void PutImage(int x, int y, uint3
         }
 
         if (!below)
-            i = ic + iw;
+            i = ic + img->Width;
 
         yc += drawbuf_width;
     }


More information about the MPlayer-cvslog mailing list