Index:
[thread]
[date]
[subject]
[author]
From: Jason McMullan <jmcc@ontv.com>
To : ggi-develop@eskimo.com
Date: 6 Apr 1999 03:52:16 GMT
Cube3d patch
Cube3d in libGGI 2.0 B2 fails on 32bit depth displays.
Here's the fix:
--- libggi-2.0b2/programs/demos/cube3d.c.old Thu Apr 1 16:37:45 1999
+++ libggi-2.0b2/programs/demos/cube3d.c Mon Apr 5 23:45:42 1999
@@ -673,7 +673,7 @@
submode[x].virt.x =slavesizex;
submode[x].virt.y =slavesizey;
- memlen=submode[x].virt.x*submode[x].virt.y*((depth+7)/8)+64*1024;
+ memlen=submode[x].virt.x*submode[x].virt.y*((GT_SIZE(mode.graphtype)+7)/8)+64*1024;
/* Add some slack for the -input queues */
/* Allocate space for the shmem visuals. */
-----------end----------
--
Jason McMullan - Linux - GGI - http://pepsi.visus.com/~jmcc
I can't wait until the point where free Linux CD's or other paraphenalia is
included in cereal boxes. That truly will be the cherry ontop of our madness!
-- Mike A. Harris <mharris@ican.net> on linux-kernel@vger.rutgers.edu
Index:
[thread]
[date]
[subject]
[author]