Mail Archives: djgpp/1997/09/22/23:45:21
Dennis Smith wrote:
>
> It was with Allegro.
>
> David Jenkins wrote:
> >
> > In article <342420AB DOT E6F0AA13 AT mail DOT t2 DOT net>, Dennis Smith
> > <ddsmith AT mail DOT t2 DOT net> writes
> > >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
> >
> > It might help if we know how your trying to display them.
> > Allegro??
> > Or,
> > Your own routine??
> >
> > --
> > http://www.jenkinsdavid.demon.co.uk for C programmers.
> > David Jenkins
Here is how i do:
BITMAP *my_pcx;/*do not forget it's a pointer*/
PALLETE my_pallete;
my_pcx=load_pcx("name.pcx",my_pallete);/*put name.pcx same dir*/
set_pallete(my_pallete);
blit(my_pcx,screen,0,0,0,0,320,200);/*watch out the size of your*/
/*file maube*/
/*this should work,see if my_pcx!=0 that meens your file was found*/
- Raw text -