From: "DeHackEd" Newsgroups: comp.os.msdos.djgpp References: <36DEB1F2 DOT 443F887C AT b DOT com> <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