Date: Thu, 8 Feb 2001 16:22:57 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jimbo cc: djgpp AT delorie DOT com Subject: Re: Setting graphics modes in Win2k In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.