From: beyonddeath Newsgroups: comp.os.msdos.djgpp Subject: Re: hmm can someone help me with VESA Message-ID: <341beso0h099e7a3cl10alhg6rstecud3a@4ax.com> References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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, ®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" 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 >