www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/30/21:47:11

From: "sl" <sl AT bbs DOT darktech DOT org>
Message-ID: <fyoofqnexgrpubet.fnkz670.pminews@nntp.generation.net>
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Date: Thu, 30 Dec 1999 20:08:31 -0500 (EST)
X-Newsreader: PMINews 2.00.1205 For OS/2
MIME-Version: 1.0
Subject: Re: VESA 1.2, cannot get current video mode!
Reply-To: djgpp AT delorie DOT com

On Thu, 30 Dec 1999 09:42:06 +0200 (IST), Eli Zaretskii wrote:

>79 decimal is 4F in hex, which means VESA is unsupported on your
>system.

>>    if (regs.h.al!=0x4F)
>>      setError(noSupport); //command not supported
>
>This is backwards: you need to say this:
>
>     if (regs.h.al == 0x4F)
>       setError(noSupport); //command not supported

	Quoting the VESA 1.2 specs:

        AL == 4Fh:      Function is supported
        Al != 4Fh:      Function is not supported
        AH == 00h:      Function call successful
        AH == 01h:      Function call failed

	What do you think is wrong now? I still can't get the
"GetCurrentMode()" to return without an error.

Gili

- Raw text -


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