Mail Archives: djgpp/1997/06/18/13:35:09
On 12 Jun 1997 21:01:12 GMT, suganuma AT jaist DOT ac DOT jp (SUGANUMA yoshinori) wrote:
>Hello.
G'day!
>I would like to use 256 grayscale colors with djgpp.
>Is it possible? and are there any libraries to do so?
There's a VGA register that can be used to toggle grey-scaling at the hardware
level. I can't remember exactly which register it is, but I'm pretty sure I
got the info from VGADOC.
It works quite nicely, and I'm pretty sure you do end up with 256 distinct
shades of grey.
This may not work with SVGA modes, however, and I'm not sure what effects it
will have on Allegro, JLIB or whatever.
Cheers,
Peter
----------------------------------------------------------------------
Peter Monks http://www.geocities.com/Yosemite/4455/
pmonks AT iname DOT com
- Raw text -