From: "sl" Message-ID: To: "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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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