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 ;
|