Mail Archives: djgpp/1997/12/18/20:16:00
Matt Kris writes:
>int main()
>{
> int allegro_init();
> int color, x, y;
I'm afraid both the people who replied to this have missed the real
problem! They are right in suggesting that explicitly calling the
shutdown functions will make your program return to text mode, but the
real problem, and the reason it doesn't do this automatically, is that
you are failing to initialise Allegro in the first place.
When you write "int allegro_init();", that is a function prototype,
telling the compiler that this function exists rather than actually
calling it. Remove the "int", and move this line to after you declare
the local variables, and all will be well...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -