Mail Archives: djgpp/1999/02/18/12:55:48
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 -