Mercurial > mplayer.hg
changeset 33131:aa753565a901
Revise Normalize().
Make loop variable match ImageSize type,
rephrase #if condition positively.
author | ib |
---|---|
date | Tue, 05 Apr 2011 09:28:59 +0000 |
parents | 4f60cd16ac04 |
children | 6ac1b560e209 |
files | gui/util/bitmap.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/util/bitmap.c Tue Apr 05 09:12:35 2011 +0000 +++ b/gui/util/bitmap.c Tue Apr 05 09:28:59 2011 +0000 @@ -149,13 +149,13 @@ static void Normalize(txSample *bf) { - int i; + unsigned long i; - for (i = 0; i < (int)bf->ImageSize; i += 4) -#if !HAVE_BIGENDIAN + for (i = 0; i < bf->ImageSize; i += 4) +#if HAVE_BIGENDIAN + bf->Image[i] = 0; +#else bf->Image[i + 3] = 0; -#else - bf->Image[i] = 0; #endif }