Mail Archives: djgpp/2001/02/08/09:27:00
On Thu, 8 Feb 2001, Jimbo wrote:
> // in case this is a 256 colour mode, generate a nice palette
> generate_332_palette(pal);
> set_palette(pal);
>
> clear_to_color(screen, makecol(0, 0, 0));
>
> }
> --------------------------------------------------------------------
>
> The program returns 4 and outputs "cannot set graphics mode".
If this is not a standard VGA graphics mode, then this is a known
problem: NT (and W2K, by extension) don't let DOS programs access the
SVGA registers which is required to program the SVGA for the more
advanced graphics mode.
- Raw text -