Mercurial > mplayer.hg
changeset 23195:c627c0ec88cf
Simplify conv24to32 for-loop
author | reimar |
---|---|
date | Wed, 02 May 2007 16:23:16 +0000 |
parents | 41bbba7c3850 |
children | 019bfce0c0dc |
files | gui/bitmap.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/bitmap.c Wed May 02 16:17:16 2007 +0000 +++ b/gui/bitmap.c Wed May 02 16:23:16 2007 +0000 @@ -80,7 +80,7 @@ return 1; } memset( bf->Image,0,bf->ImageSize ); - for ( c=0,i=0;i < (int)(bf->Width * bf->Height * 3); ) + for ( c=0,i=0; c < bf->ImageSize; ) { bf->Image[c++]=tmpImage[i++]; //red bf->Image[c++]=tmpImage[i++]; //green