02-28-2005, 09:10 PM
Can anyone tell me why this section of code does not work? Why is it when I hit escape, the program doesn't exit? It pretty much just freezes up on me.
Any help is appreciated.
Code:
'$include: "allegro.bi"
allegro_init
install_keyboard
ret = set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0)
if ret <> 0 then
allegro_message(allegro_error)
allegro_exit
end
end if
do
loop until inkey$ = chr$(27)
allegro_exit
Any help is appreciated.
o time for the old in-out Love, I've just come to check the meter.