Mercurial > mplayer.hg
changeset 37009:393bd4f71bd6
Remove variable.
Directly use img->Width instead of storing it in iw.
author | ib |
---|---|
date | Fri, 28 Mar 2014 18:56:56 +0000 |
parents | 7b4cb946634a |
children | af84671a576f |
files | gui/ui/render.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/render.c Fri Mar 28 18:33:20 2014 +0000 +++ b/gui/ui/render.c Fri Mar 28 18:56:56 2014 +0000 @@ -357,7 +357,7 @@ 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 @@ 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 @@ } if (!below) - i = ic + iw; + i = ic + img->Width; yc += drawbuf_width; }