Message-ID: <35DA884C.3DAF6A05@geocities.com> From: Merlin MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: -= Hi RES GraphicS =- , HOW in DJGPP ? References: <35DA143C DOT CC91D2A9 AT hotmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 47 Date: Wed, 19 Aug 1998 08:13:28 GMT NNTP-Posting-Host: 198-cy-wpg.ilos.net NNTP-Posting-Date: Wed, 19 Aug 1998 03:13:28 CDT Organization: MBnet Networking Inc. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk shay wrote: > hello group, > > can someone please send me a short code of how to switch to a > resolution, > like 800 * 600 / 16BIT , write a pixel , and change the pallete .(in > DJGPP..) > > when i tried it myself i blew my display adapter .......... > lucky for me my warranty was still on . > > if it matters , i have Diamond Stealth 64 Video with 4MB VRAM. > > so you see why i need BIG HELP, > > shay hatsor , > > path_finder2 AT hotmail DOT com it's easy to switch to the mode..(check the VESA 1.2 or 2.0 docs....) it's using the mode that's the hard part... here's how to switch to a vesa mode Func 2h : Set VBE mode in : ax = 4f02h bx = bit 0-8 : mode # (0h thru 1ffh) bit 9-13 : Reserved (must be 0) bit 14 : =1 use linear/flat frame buffer model (VBE 2.0+ only) =0 use windowed/banking frame buffer model bit 15 : =1 clear display memory =0 don't clear memory out: ax = VBE status I don't know what mode number 640x480 16 bit is...but it's in the vesa docs. oh yes...and if this does blow up your computer, i take no responsibility...but it shouldn't l8r. Merlin.