www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/19:44:49

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Vesa mode graphics
Date: Mon, 27 Jan 1997 22:12:51 +0000
Organization: None
Distribution: world
Message-ID: <s8eIIEBjhS7yEwuh@talula.demon.co.uk>
References: <32e9265d DOT 3993736 AT news DOT primenet DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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'.
 */

- Raw text -


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