Update of /cvsroot/plib/plib/src/ssg
In directory sc8-pr-cvs1:/tmp/cvs-serv5328/plib/src/ssg
Modified Files:
ssgLoadTexture.cxx
Log Message:
Fixed minor bugs all over, added Screen Dump command to ssgAux.
Index: ssgLoadTexture.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadTexture.cxx,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ssgLoadTexture.cxx 30 Nov 2002 00:41:50 -0000 1.17
+++ ssgLoadTexture.cxx 27 Jun 2003 08:15:15 -0000 1.18
@@ -97,6 +97,15 @@
int t3 = texels [ l1 ] [ (y1 * w1 + x1_1) * zsize + c ] ;
int t4 = texels [ l1 ] [ (y1_1 * w1 + x1_1) * zsize + c ] ;
+if ( c == 3 ) /* Alpha */
+{
+ int a = t1 ;
+ if ( t2 > a ) a = t2 ;
+ if ( t3 > a ) a = t3 ;
+ if ( t4 > a ) a = t4 ;
+ texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] = a ;
+}
+else
texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] =
( t1 + t2 + t3 + t4 ) / 4 ;
}
|