[Plib-cvs] plib/src/ssg ssgLoadPCX.cxx,1.3,1.4
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-09-22 22:43:34
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25399 Modified Files: ssgLoadPCX.cxx Log Message: Untabified. Index: ssgLoadPCX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadPCX.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ssgLoadPCX.cxx 13 Sep 2004 12:14:56 -0000 1.3 +++ ssgLoadPCX.cxx 22 Sep 2004 22:43:24 -0000 1.4 @@ -37,7 +37,7 @@ //=========================================================================== #include "ssgLocal.h" -typedef unsigned char UByte,*UByteP; +typedef unsigned char UByte,*UByteP; #include "pcx.h" @@ -48,40 +48,40 @@ int ReadFileIntoBuffer(const char *fname, UByte *&buffer, UByte *&bufferorig, unsigned long &file_length) // Opens the file, allocates buffer of correct size to hold the file, reads it, closes it [...195 lines suppressed...] - UByte a = pAlfa?pAlfa[iRunningIndex]:255; + UByte a = pAlfa?pAlfa[iRunningIndex]:255; UByte b = pBody[iRunningIndex++]; texels[c++] = buffer[b*3 ]; texels[c++] = buffer[b*3 + 1]; @@ -171,10 +171,10 @@ } } - delete [] pBodyorig; - delete [] bufferorig; - if (pAlfa) - delete [] pAlfa; + delete [] pBodyorig; + delete [] bufferorig; + if (pAlfa) + delete [] pAlfa; return ssgMakeMipMaps ( texels, width, height, 4 ) ; } #else |