[Plib-cvs] plib/src/ssg ssgLoadSGI.cxx,1.16,1.17
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-03-14 11:35:53
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3289 Modified Files: ssgLoadSGI.cxx Log Message: Fix by Melchior FRANZ <mf...@ao...>, see hist post from 12 Mar 2004 on the fgfs devel list. A SGI file with zsize 2 is a "grayscale with alfa" file. Index: ssgLoadSGI.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadSGI.cxx,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- ssgLoadSGI.cxx 4 Nov 2003 13:14:33 -0000 1.16 +++ ssgLoadSGI.cxx 14 Mar 2004 11:26:56 -0000 1.17 @@ -352,7 +352,7 @@ info -> width = sgihdr->xsize ; info -> height = sgihdr->ysize ; info -> depth = sgihdr->zsize ; - info -> alpha = ( sgihdr->zsize == 4 ) ; + info -> alpha = ( sgihdr->zsize == 2 || sgihdr->zsize == 4 ) ; } bool result = |