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

From: Eric Berenson <ekb44 AT cats DOT ucsc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: CAN I GET ALLEGRO 2 WORK
Date: Thu, 18 Feb 1999 08:23:08 -0800
Organization: University of California, Santa Cruz
Lines: 57
Message-ID: <36CC3E6C.88306D61@cats.ucsc.edu>
NNTP-Posting-Host: tsb-28.dialup.ucsc.edu
Mime-Version: 1.0
X-Mailer: Mozilla 4.01 [en] (Win95; I)
X-Priority: 3 (Normal)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

 have a Gateway 2000 P120, no mmx, from 1995, with a STB Trio
64V+ graphics card and an Ensoniq Soundscape
Wavetable Sound card, and 16MB RAM, running WIN95. None of the sound
library routines work in Allegro, but that's a problem to fix later. If
I cannot get any graphics I have nothing to do. I switched from
TurboPascal/DOS/ASM to the "real world" of C. I have so many things to
port and look at.
-----------------------------------------------------------------------------

/* 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) {
      allegro_exit();
      printf("Error setting graphics mode\n%s\n\n", allegro_error);
      return 1;
   }
   return 0;
}
------------------------------------------------------------------------------

#include "allegro.h"
int main()
{
   int x, y, w=800, h=600;
   allegro_init();
   install_keyboard();
   if (set_gfx_mode(GFX_AUTODETECT, w, h, 0, 0))
   /* the line above produces an unrecoverable-powerdown type crash */
   {
     allegro_exit();
     printf("Modeset failure.\n");
     return 0;
   }
   for (x=0;x<320;x++)
     for (y=0;y<200;y++)
       putpixel(screen,x,y,x&y);
   do{
   } while (! keypressed() );
   allegro_exit();
   return 0;
}
-----------------------------------------------------------------------------------------------

also ex12, ex23, ex40, any exXX using sound, tests\test, all crash.

compilied Allegro with all default gcc settings.
using FREEBE VBEAF driver version 1.0;

Help. Thanx.

- Raw text -


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