Mail Archives: djgpp/1998/03/22/17:45:39
Can someone please tell me why this piece of code doesn't work?
It was supposed to load an pcx file with 24 bits colors.
If you can mail me the solution: agil DOT home AT mail DOT telepac DOT pt
#include <allegro.h>
#include <conio.h>
PALLETE pal;
void main(void)
{
allegro_init();
set_color_depth(24);
set_gfx_mode(GFX_VESA1, 640, 480, 0, 0);
set_pallete_range(pal, 0, 255, 0);
*load_pcx("menu6", pal);
getch();
allegro_exit();
}
Thanks
André Gil ( agil DOT home AT mail DOT telepac DOT pt )
- Raw text -