[MPlayer-cvslog] r23213 - trunk/gui/bitmap.c

reimar subversion at mplayerhq.hu
Wed May 2 18:23:17 CEST 2007


Author: reimar
Date: Wed May  2 18:23:16 2007
New Revision: 23213

Log:
Simplify conv24to32 for-loop


Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	(original)
+++ trunk/gui/bitmap.c	Wed May  2 18:23:16 2007
@@ -80,7 +80,7 @@ int conv24to32( txSample * bf )
      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



More information about the MPlayer-cvslog mailing list