From: "sl" Newsgroups: comp.os.msdos.djgpp Subject: VESA 1.2, cannot get current video mode! Date: Wed, 29 Dec 1999 17:22:45 -0500 (EST) Organization: Posted via Supernews, http://www.supernews.com Lines: 29 Message-ID: X-Complaints-To: newsabuse AT supernews DOT com X-Newsreader: PMINews 2.00.1205 For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Using the VESA 1.2 specification (I also double checked using the MS DOS interrupt list) I wrote up the following function.. 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. --------function follows----------- regs.x.ax=0x4F03; regs.h.ah=0x4F; regs.h.al=3; __dpmi_int(0x10, ®s); if (regs.h.al!=0x4F) setError(noSupport); //command not supported if (regs.h.ah!=0) setError(failed); //command failed if (error()!=none) return -1; _mode=regs.x.bx; ------------------------------ Please help! Gili