www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/05/07:56:17

From: "DeHackEd" <notgiven AT out DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <36DEB1F2 DOT 443F887C AT b DOT com> <B5AD2.2852$G26 DOT 224 AT tundra DOT ops DOT attcanada DOT net> <36DF0F68 DOT 4D9684C4 AT xyz DOT com>
Subject: Re: Palettes *PLEASE HELP*
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Message-ID: <9rQD2.3031$G26.221@tundra.ops.attcanada.net>
Date: Fri, 05 Mar 1999 12:51:17 GMT
NNTP-Posting-Host: 142.194.222.236
X-Trace: tundra.ops.attcanada.net 920638277 142.194.222.236 (Fri, 05 Mar 1999 12:51:17 GMT)
NNTP-Posting-Date: Fri, 05 Mar 1999 12:51:17 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Simple example.

DATAFILE *d = load_datafile("datafile.dat");
if (!d)
    error();

// assume the H file says PICTURE is the BMP and
// PAL is the palette

set_palette(d.dat[PAL]);
blit(d.dat[PICTURE], screen, 0, 0, 0, 0, width, height);

--
"DeHackEd"

My Email address in the header is fake (spammers). Email me at this address:

http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked


- Raw text -


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