delorie.com/archives/browse.cgi | search |
From: | arganoid AT fatal-design DOT com (Andrew R. Gillett) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: 24-bit color using Allegro |
Date: | Mon, 18 Jan 1999 01:08:27 -0000 |
Organization: | www.release-dates.co.uk |
Lines: | 16 |
Message-ID: | <MPG.110c99ea3e0b3b9b98a15d@news.freeserve.net> |
References: | <77tlc8$hhh$1 AT remarQ DOT com> <Nnuo2.348$jW2 DOT 33 AT tundra DOT ops DOT attcanada DOT net> |
NNTP-Posting-Host: | modem-77.antimony.dialup.pol.co.uk |
X-Trace: | news4.svr.pol.co.uk 916621709 9175 62.136.25.77 (18 Jan 1999 01:08:29 GMT) |
NNTP-Posting-Date: | 18 Jan 1999 01:08:29 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Newsreader: | MicroPlanet Gravity v2.10 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
In comp.os.msdos.djgpp, DeHackEd wrote: > The simple solution is this: > > set_color_depth( either 8,15,16,24 or 32); > > And that's it. Setting a graphics mode will use that colour depth, loaded > bitmaps will use whatever is used (not sure how palette paramater is used > though...) and create_bitmap defaults to the specified colour depth. And then replace the colour argument on all the plotting routines with makecol(r,g,b). -- Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage You will meet a tall dark stranger. Unfortunately he's holding a large gun. Run for it!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |