cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/22/20:30:33

From: Charles Mennerat <nambi AT club-internet DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Displaying PCX Files
Date: Tue, 23 Sep 1997 00:31:22 +0200
Organization: Grolier Interactive Europe
Lines: 28
Message-ID: <3426F1BA.11CB@club-internet.fr>
References: <342420AB DOT E6F0AA13 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:
> 
> 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 -


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