www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/22/12:31:20

From: jaspeers AT aol DOT com (Jaspeers)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro loads graphics funny...
Date: 22 Nov 1997 16:17:06 GMT
Lines: 16
Message-ID: <19971122161701.LAA04727@ladder02.news.aol.com>
NNTP-Posting-Host: ladder02.news.aol.com
Organization: AOL http://www.aol.com
References: <34758429 DOT 1B01 AT nic DOT smsu DOT edu>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Im using graphic files in my programs (BMP, TGA) but when I load them, they
>are
>> much larger than I expected. So I reduce the size of the image, but by the
>time
>> Allegro has displayed the image the way I want it, Ive reduced the image so
>> much that all of its clarity has been lost. Since Im kinda new to this
>stuff,
Set the screen mode in allegro to the same resolution as you're using in
windows.  Probably 640x480 or 800x600.  Just:
set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0);
or
set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
----
Justin Speers
God is nothing that you favor evil is your sour nature - Marilyn Manson
mr_twiggy AT hotmail DOT com

- Raw text -


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