[MPlayer-cvslog] r34605 - trunk/gui/util/bitmap.c
ib
subversion at mplayerhq.hu
Fri Jan 27 12:24:59 CET 2012
Author: ib
Date: Fri Jan 27 12:24:59 2012
New Revision: 34605
Log:
Cosmetic: Rename variables.
Match them to the loop for 32 bpp below.
Modified:
trunk/gui/util/bitmap.c
Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c Fri Jan 27 12:09:05 2012 (r34604)
+++ trunk/gui/util/bitmap.c Fri Jan 27 12:24:59 2012 (r34605)
@@ -179,8 +179,8 @@ static int convert_ARGB(guiImage *img)
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) {
More information about the MPlayer-cvslog
mailing list