delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/26/05:14:49

From: William Lachance <billl AT synapse DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Vesa mode graphics
Date: Sat, 25 Jan 1997 23:57:35 -0800
Organization: Synapse Internet <www.synapse.net>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019