changeset 34517:03a6ae3bee1e

Cosmetic: Rename variables. Match them to the loop for 32 bpp below.
author ib
date Fri, 27 Jan 2012 11:24:59 +0000
parents 073ba421c82d
children d476fbab0a28
files gui/util/bitmap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Fri Jan 27 11:09:05 2012 +0000
+++ b/gui/util/bitmap.c	Fri Jan 27 11:24:59 2012 +0000
@@ -179,8 +179,8 @@
 
         mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] 32 bpp conversion size: %lu\n", img->ImageSize);
 
-        for (c = 0, i = 0; c < img->ImageSize; c += 4, i += 3)
-            *(uint32_t *)&img->Image[c] = ALPHA_OPAQUE | AV_RB24(&orgImage[i]);
+        for (i = 0, c = 0; i < img->ImageSize; i += 4, c += 3)
+            *(uint32_t *)&img->Image[i] = ALPHA_OPAQUE | AV_RB24(&orgImage[c]);
 
         free(orgImage);
     } else if (img->Bpp == 32) {