From: "Doug" Newsgroups: comp.os.msdos.djgpp Subject: Re: Anyone have VGA (620x480x4) code to share Date: 2 Mar 2001 00:37:34 GMT Organization: none Lines: 30 Message-ID: <01c0a2b2$6c3588a0$8a247d81@doug> References: <01c0a1c5$da8125a0$98247d81 AT doug> <97lgjj$4s0$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> NNTP-Posting-Host: client36-138.oprit.rug.nl X-Trace: info.service.rug.nl 983493454 6341 129.125.36.138 (2 Mar 2001 00:37:34 GMT) X-Complaints-To: newsmaster AT rug DOT nl NNTP-Posting-Date: 2 Mar 2001 00:37:34 GMT X-Newsreader: Microsoft Internet News 4.70.1155 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker schreef in artikel > simple 256 color modes where you can usually just write a single byte > to a particular memory location and be done with it. Esp. since VESA > linear frame buffering is available for just about every piece of > hardware currently in use. I want it for my Depui library so that I can have a driver even for very old VGA hardware. I've got a book on this mode but, as you said, it is complicated and I'm not at all sure that I can do it my self. I can probably find some code for old Borland C++ 3.11 compiler, but I'm not confidant that I could get it working with DJGPP. > I.e. unless there's a very good reason in favour of doing it, keep > your fingers off those modes. Use 640x480x256 or something higher, > instead, or if you really must, rely on BIOS putpixel routines to > access them. The fraction of machines that offer 640x480x16 but not > 640x480x256 is small enough to be negligible for just about every > application. Normally, I'd aggree with you here, but I really want my gui to be _very_ portable, and want to supprot the absolute basics, even old 386's. Does no one use this mode at all? Doug