Mail Archives: djgpp/2000/03/31/23:57:21
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, ®s, ®s); /* Call the BIOS (int10) */
game(); /*This is where the game loads*/
regs.h.al = 3; /* return to Mode 3 */
int86(0x10, ®s, ®s);
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 -