[AD] Documentation clarification

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


The docs are a little unclear about using color maps. I think this patch clarifies what you need to do.
Built against allegro-4.1.12/docs/txt/allegro.txt

later--,
jon
--- allegro.txt	2004-02-17 21:41:10.000000000 -0500
+++ allegro.txt.good	2004-02-17 21:39:23.000000000 -0500
@@ -4757,10 +4757,8 @@
 defined by Allegro" for an internal description of the COLOR_MAP structure.
 
 extern COLOR_MAP *color_map;
-   Global pointer to the color mapping table. You must allocate your own
-   COLOR_MAP either statically or dynamically and set color_map to it 
-   before using any translucent or lit drawing functions in a 256-color 
-   video mode!
+   Global pointer to the color mapping table. This must be set before using 
+   any translucent or lit drawing functions in a 256-color video mode!
 
 void create_trans_table(COLOR_MAP *table, const PALETTE pal,
                         int r, g, b, void (*callback)(int pos));


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