delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/08/09:27:00

Date: Thu, 8 Feb 2001 16:22:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jimbo <rpgfreak AT lineone DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Setting graphics modes in Win2k
In-Reply-To: <t851ba7dbs3g5f@corp.supernews.co.uk>
Message-ID: <Pine.SUN.3.91.1010208162140.23371C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


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