Mail Archives: djgpp/1997/09/22/20:30:33
Dennis Smith wrote:
>
> When I try to display a PCX file on the screen in 320x200, the screen
> remains blank. If I try this in 640 x 480 or higher (VESA), the screen
> shows garble, though always from the same palette as the picture. I
> tried this with several different pics, but it always did the same
> thing.
>
> Does anyone know if theis is my video card (4MB ATI 3D Xpression +), the
> program I saved the files with (Adlus Photostyler SE, and Alchemy
> Mindworks Graphic Workshop 95), or something else?
>
> Thanks.
>
> Dennis Smith
using allegro
this is how I do using allegro:
BITMAP *mon_pcx;
PALLETE bonjour_de_france;
mon_pcx=load_pcx("silly.pcx",bonjour_de_france);
set_pallete(bonjour_de_france);
blit(mon_pcx,screen,0,0,0,0,320,200);
/*To check if you have loaded the pcx file use if(mon_pcx!=0)
{it's loaded}
otherwise(i'm practicing english) check if it's in your dir*/
- Raw text -