[AD] Patch: compile w/o 8bpp

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi,

I tried to compile Allegro without 8bpp support, but it failed,
complaining about unresolved externals DR, DG and DB in
src/i386/izbuf.s.  Those #define's just fell on the wrong side of
the 8bpp preprocessor conditional; patch attached.

Regards,
Magnus Henoch
Index: src/i386/izbuf.s
===================================================================
RCS file: /cvsroot/alleg/allegro/src/i386/izbuf.s,v
retrieving revision 1.5
diff -u -r1.5 izbuf.s
--- src/i386/izbuf.s	29 Sep 2001 18:12:36 -0000	1.5
+++ src/i386/izbuf.s	24 Apr 2003 21:08:51 -0000
@@ -138,6 +138,10 @@
 #endif
 
 
+#define DB      -8(%ebp)
+#define DG     -12(%ebp)
+#define DR     -16(%ebp)
+
 
 #ifdef ALLEGRO_COLOR8
 /* void _poly_zbuf_gcol8(unsigned long addr, int w, POLYGON_SEGMENT *info);
@@ -192,10 +196,6 @@
    ret                           /* end of _poly_zbuf_gcol8() */
 
 
-
-#define DB      -8(%ebp)
-#define DG     -12(%ebp)
-#define DR     -16(%ebp)
 
 /* void _poly_zbuf_grgb8(unsigned long addr, int w, POLYGON_SEGMENT *info);
  *  Fills an RGB gouraud shaded polygon scanline.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/