cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/22/23:45:21

From: Charles Mennerat <nambi AT club-internet DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Displaying PCX Files
Date: Mon, 22 Sep 1997 23:38:03 +0200
Organization: Grolier Interactive Europe
Lines: 40
Message-ID: <3426E53B.4DCE@club-internet.fr>
References: <342420AB DOT E6F0AA13 AT mail DOT t2 DOT net> <Q$0bmBARsHJ0EwQA AT jenkinsdavid DOT demon DOT co DOT uk> <34254E61 DOT 7802B3BC AT mail DOT t2 DOT net>
Reply-To: nambi AT club-internet DOT fr
NNTP-Posting-Host: ppp-105-252.villette.club-internet.fr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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