From: De Messemaeker Johan Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Vesa mode graphics Date: Wed, 29 Jan 1997 17:34:56 +0100 Organization: RUG Gent Lines: 27 Message-ID: <32EF7C30.771B@rug.ac.be> References: <32e9265d DOT 3993736 AT news DOT primenet DOT com> Reply-To: Johan DOT DeMessemaeker AT rug DOT ac DOT be NNTP-Posting-Host: infernal.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Shawn Hargreaves wrote: > > Mike McLean writes: > >I am having trouble doing graphics in Vesa graphics modes. I am > >trying to display in 640x480 colors, what I display to the screen > >displays, yet it also displays garbage over it. > > > >this is what I use to set the mode, should i change something? > > > >set_gfx_mode(GFX_VESA2B, 640, 480, 0, 0); > > I'd use GFX_AUTODETECT, because then your program will work on machines > that don't support VBE 2.0 as well as ones that do. Also, it would be a > good idea to check the return value from set_gfx_mode(), because SVGA > resolutions aren't always available and the function may fail. > > That doesn't explain your problem, though. Can you post some source that > demonstrates the trouble? I need more info before I can say what's > wrong... > > /* > * Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ > * Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'. > */ I had the same problem ... until I installed Univbe. Dj Infernal