delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/27/06:48:45

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE301341763@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Allegro/screen questions. PLEASE ANSWER!
Date: Tue, 27 Apr 1999 11:48:33 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019