From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: VESA 1.2, cannot get current video mode! Date: Fri, 31 Dec 1999 11:04:40 +0200 Organization: NetVision Israel Lines: 30 Message-ID: <386C71A8.EDA768E@is.elta.co.il> References: NNTP-Posting-Host: ras1-p113.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netvision.net.il 946630847 19405 62.0.172.115 (31 Dec 1999 09:00:47 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 31 Dec 1999 09:00:47 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,ru,hebrew To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com sl wrote: > > > >> 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 Oops! Sorry, you are right. I was fooled by my weary eyes by your wording which said: > Unfortunately, on my > system, this call ALWAYS returns regs.h.al=79 instead of regs.h.al=0 which > would indicate no error has occured. Why did you say ``Unfortunately''? The Interrupt List says that regs.h.al == 4Fh is a sign of success, right? > What do you think is wrong now? I still can't get the > "GetCurrentMode()" to return without an error. Hmm... I'm not sure what the problem is anymore, see above. Please tell where do you see the problem.