Mail Archives: djgpp/1999/04/27/06:48:45
Oscar Almer writes:
> small question: how do I set/get colors/palette in vesa
> mode(I use allegro, of course)? (screen: 1024 * 768, BPP == 16)
There are no palettes in 16 bit modes. Use the makecol() and
getr()/getg()/getb() functions to pack colors into the hardware
format. See the Allegro docs and examples for details.
> in the allegro examples there are some undocumented functions,
> like _dos_ds()(although this one is fairly obvious) and others.
"info libc". Although I don't think _dos_ds is actually included
in the index for that. btw. _dos_ds is a variable, not a function,
so it doesn't have a ().
> is it even remotely possible to cause a hardware failure in
> your screen byplaying around with the allegro screen modes?
You can destroy an old fixed sync monitor by setting unsupported
video modes, but it is years since anybody made that kind of
hardware. Current monitors and cards can still sometimes be harmed
if you overclock them to too high a speed, but Allegro never
touches the hardware at that low a level.
Shawn Hargreaves.
- Raw text -