www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/19/10:31:56

From: "Mark Figura" <nospam AT please DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: help with 640x480x65536
Date: Wed, 19 Aug 1998 01:38:57 -0400
Organization: "SNET dial access service"
Lines: 32
Message-ID: <6rdo2i$8ak@news1.snet.net>
NNTP-Posting-Host: sttn-sh6-port192.snet.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

I'm making a game that's gonna use 640x480x65536.  So far, it works fine on
my computer, but it doesn't switch to that video mode on my friends
computer.  He has a i740 AGP card, and 640x480x65536 isn't a problem for it
(unless it's running my program :).  I have a #9 771.

Here's my function that switches to 640x480x65536...
int _640x480x64k()
{
    __dpmi_regs regs;
    regs.x.ax=0x4f02;
    regs.x.bx=0x111;
    __dpmi_int(0x10,&regs);
    ... // allocate memory for double buffer, etc...
    if(regs.x.ax=0x4f)
        return(1); // it worked
    else
        return(0); // it didn't
}

On my friends computer, it doesn't work, and it returns a "0".

Could this be because it's AGP, or what?

Anybody got any ideas? :)

Thanks!!!!!
Mark
Please send me an email at mfig1 AT snet DOT net


- Raw text -


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