[Plib-cvs] plib/src/ssg ssgLoadBMP.cxx,1.13,1.14
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-06-10 13:11:36
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv8657 Modified Files: ssgLoadBMP.cxx Log Message: Jonathan Polley: Fixed compiling problem under MSVC Index: ssgLoadBMP.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadBMP.cxx,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- ssgLoadBMP.cxx 9 Jun 2002 11:29:54 -0000 1.13 +++ ssgLoadBMP.cxx 10 Jun 2002 13:11:32 -0000 1.14 @@ -264,9 +264,11 @@ if ( bpp == 8 ) { + int i ; + // check for diffrent alpha values in the bitmap // assume blending if that's the case - for ( int i = 1 ; i < w * h ; i++ ) { + for ( i = 1 ; i < w * h ; i++ ) { if (pal[data[i]].a != pal[data[i-1]].a) { isOpaque = FALSE ; break; @@ -280,7 +282,7 @@ image = new GLubyte [ w * h * z ] ; - for ( int i = 0 ; i < w * h ; i++ ) + for ( i = 0 ; i < w * h ; i++ ) switch ( z ) { case 1 : image [ i ] = pal[data[i]].r ; break ; |