delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/28/01:22:06

From: libolt AT goodnet DOT com (Mike McLean)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Vesa mode graphics
Date: 27 Jan 1997 19:35:01 -0700
Organization: Lightning Bolt Software
Lines: 42
Message-ID: <32ee5ff9.8293044@news.primenet.com>
References: <32e9265d DOT 3993736 AT news DOT primenet DOT com> <s8eIIEBjhS7yEwuh AT talula DOT demon DOT co DOT uk>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Well, here is the exact code i am using.
main()
{
   set_gfx_mode(GFX_VESA2B, 640, 480, 0, 0);
   clear(screen);
   line(screen,4,1,4,34,1);
   line(screen,4,15,20,1,1);
   line(screen,4,15,24,34,1);
   line(screen,35,1,50,1,1);
   line(screen,43,1,43,34,1);
   line(screen,35,34,50,34,1);
   line(screen,60,1,70,1,1);
   line(screen,65,1,65,34,1); 
   line(screen,60,34,70,34,1);
   line(screen,65,1,85,34,1);
   line(screen,85,1,85,34,1);
   line(screen,85,1,80,1,1);
   line(screen,85,1,90,1,1);
   line(screen,100,1,115,1,1);
   line(screen,100,1,100,34,1);
   line(screen,100,34,120,34,1);
   line(screen,120,34,120,18,1);
   line(screen,120,18,110,18,1);
   line(screen,130,34,140,1,1);
   line(screen,140,1,155,34,1);
   line(screen,140,20,150,20,1);

>
>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