www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/20/10:44:56

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <he2ufs4pnlj8ccpv4pektvq5tlealrgg6u@4ax.com>
References: <01JODQR7JCTE9JD7JV AT SLU DOT EDU>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 32
X-Trace: /bQNubH8x07ZN1s3Quhd/U/Jd0oe+gDBEPbG8BbjSSJ/WMKMvjFn+CKYXIobVZj5yASeIbRwjliT!oWo0l2yc1OKCfoHC8WbzDiVs+ZhJVe6QeH/Dwov3IiRM6P0XpUFbwf7uDQOyiO75PKV6ClyOd9mJ!juT03g==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 20 Apr 2000 13:46:56 GMT
Distribution: world
Date: Thu, 20 Apr 2000 13:46:56 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 18 Apr 2000 12:45:16 -0500 (CDT), GAMMELJL AT SLU DOT EDU wrote:

>     After eliz told me where the graphics tutorials are, I read them
>and poked around the delorie.com site and ultimately found "allegro".
>     I downloaded it and (the FAQ was dead on target) ran make and
>found that the examples ran fine (except for #31).  So I tried running
>some code which I wrote, and that ran fine.
>     But then I got greedy and wanted to increase the resolution and
>so changed a line in ex1.c to read
>        set_gfx_mode(GFX_VGA,640,480,0,0);

That won't work.  VGA doesn't support 640x480 in 8 bits.

>and my code crashes.  I have a super VGA monitor with 2mb of Vram and
>a nVida-128, so I downloaded the SciTechSoft stuff and switched to
>their driver.  But my code still crashes.
>    Ultimatly, of course, I want to do 1024x768

So try putting this line in your code:
   set_gfx_mode(GFX_AUTODETECT, 1024, 768, 0, 0);

GFX_AUTODETECT will try all the graphics drivers and pick one that
fits.  What version of Allegro are you using?  (You should use 3.9.32
from the Work in Progress page.)

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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