Mail Archives: djgpp/2000/04/06/14:51:19
On Thu, 6 Apr 2000, Robin Johnson wrote:
> In a few old demos, I have seen the color of the text in textmode changed from
> the default 16 colors, from eg, to 15 shades of green, any comments on how to
> accomplish this in DJGPP?
You need to reprogram your VGA to use a different color palette. Each of
the 16 colors is actually an index into a table used by VGA to fetch the
actual color; you need to change that table.
There are BIOS functions to reprogram VGA as explained above. DJGPP
doesn't provide library function for that, so you will need to call
__dpmi_int directly.
I would imagine that Allegro and GRX have functions to do that.
- Raw text -