delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/18/12:55:48

From: Edward Hill <edward_hill AT www DOT anything DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CAN I GET ALLEGRO 2 WORK
Date: Thu, 18 Feb 1999 16:48:11 -0800
Organization: Easams Engineering Systems
Lines: 25
Message-ID: <36CCB4CB.2AE5@gec.nospam.com>
References: <36CC3E6C DOT 88306D61 AT cats DOT ucsc DOT edu>
NNTP-Posting-Host: pc02372.gmsws.gecm.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01C-GECMMTL (Win95; I; 16bit)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eric Berenson wrote:
[snip] 
: /* This program crashes unrecoverably in a power-down fashion. */
: #include <stdlib.h>
: #include <stdio.h>
: #include "allegro.h"
: 
: int main()
: {
:    allegro_init();
:    install_keyboard();
:    if (set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0) != 0) {

I would suggest changing the 800 and 600 to 320 and 200 respectively.
Compile, and run again and see if it crashes.
Then step if that works step the graphics up to 640 by 480
and see if it crashes.
Post your results...

:       allegro_exit();
:       printf("Error setting graphics mode\n%s\n\n", allegro_error);
:       return 1;
:    }
:    return 0;
: }

- Raw text -


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