Update of /cvsroot/plib/plib/src/ssg
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12288/ssg
Modified Files:
ssgLoadPCX.cxx
Log Message:
Fixing a bug that cancelled the bug in pcx.h
Index: ssgLoadPCX.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadPCX.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ssgLoadPCX.cxx 12 Dec 2003 17:23:51 -0000 1.1
+++ ssgLoadPCX.cxx 24 Jan 2004 18:21:55 -0000 1.2
@@ -95,9 +95,12 @@
"ssgLoadTexture: '%s' - unsupported or broken PCX texture file", fname ) ;
return false ;
}
-
+ if(*buffer++ != 12)
+ { ulSetError ( UL_WARNING, "ssgLoadTexture: '%s' - PCX files needs a '12' byte", fname ) ;
+ return false ;
+ }
assert(bufferorig + file_length - 768 == buffer);
- // starting at "buffer", you can find the palette, 256 ebntrys with 3 bytes each
+ // starting at "buffer", you can find the palette, 256 entrys with 3 bytes each
// only true for version 5 (and possible later versions)=
UByte *texels = new UByte [size * 4]; // 4 bytes per texel
|