From: William Lachance Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Vesa mode graphics Date: Sat, 25 Jan 1997 23:57:35 -0800 Organization: Synapse Internet Lines: 21 Message-ID: <32EB0E6F.1D8D@synapse.net> References: <32e9265d DOT 3993736 AT news DOT primenet DOT com> Reply-To: billl AT synapse DOT net NNTP-Posting-Host: violin-02.synapse.net 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 Mike McLean wrote: > > 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); Add this function to your code before displaying anything: clear(screen); Remember: your variables will (almost) always be garbage until you init them correctly! Hope this helps, Bill Lachance billl AT ysnapse DOT net