www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/17:45:39

From: "André Gil" <agil DOT home AT mail DOT telepac DOT pt>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro and DJGPP
Date: Sun, 22 Mar 1998 19:57:29 -0800
Lines: 34
Message-ID: <6f3q6n$imu$1@duke.telepac.pt>
NNTP-Posting-Host: 194.65.234.10
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019