delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/31/23:57:21

From: beyonddeath <justhunt1234 AT home DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: hmm can someone help me with VESA
Message-ID: <341beso0h099e7a3cl10alhg6rstecud3a@4ax.com>
References: <vopaes8lf0dvmo6qcgr9mr700ttrc4nvl0 AT 4ax DOT com> <tScF4.102301$Hq3 DOT 2613355 AT news2 DOT rdc1 DOT on DOT home DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 51
Date: Sat, 01 Apr 2000 02:13:47 GMT
NNTP-Posting-Host: 24.112.65.173
X-Complaints-To: abuse AT home DOT net
X-Trace: news2.rdc1.on.home.com 954555227 24.112.65.173 (Fri, 31 Mar 2000 18:13:47 PST)
NNTP-Posting-Date: Fri, 31 Mar 2000 18:13:47 PST
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

actually what i am doing is interupting the thing and tellin it to go
into the mode i specify like this:

... hope i didnt delete it ;)

main()
{
union REGS regs;

/* accept Mode number in hex */
sscanf(argv[1], "%x", &mode);
regs.x.ax = 0x4F02; /* change display mode */
regs.x.bx = 117; /* three-digit mode number */
int86(0x10, &regs, &regs); /* Call the BIOS (int10) */

game(); /*This is where the game loads*/

regs.h.al = 3; /* return to Mode 3 */
int86(0x10, &regs, &regs);
return;
}


hope that helps i just tried what they said on djgpps site and it
didnt do anything but change resolution i need to print text and this
does work.

Thanks


On Sat, 01 Apr 2000 02:08:25 GMT, "AndrewJ" <luminous-is AT home DOT com>
wrote:

>
>> Just looking for 1024x768 in 32767 or more colors if possible  right
>> now my code compiles and 1-2 resolutions will work and thats all, is
>> it possible please help.
>
>Just out of curiousity, what method are you using to find the available modes?
>Are you using the recommended mode in VBE 2+ where you trip throught the mode
>list pointer until you get the right one?  Or are you just arbitrarily picked
>what would be the right mode number and using it?  Also, are you sure your
>video card/VBE implementation supports that mode?
>
>If you want to send me the relevent code pieces, I can check to see if it's
>alright (although I use Watcom/NASM, I should be able to puzzle out DJGPP's
>method of doing things).
>
>AndrewJ
>

- Raw text -


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