Mail Archives: djgpp/1998/11/06/22:10:45
#include <stdio.h>
#include <allegro.h>
volatile int retr=0;
void ret_proc()
{
retr++;
}
END_OF_FUNCTION(ret_proc)
int main()
{
allegro_init();
install_timer();
install_keyboard();
LOCK_VARIABLE(retr);
LOCK_FUNCTION(ret_proc);
retrace_proc = ret_proc;
set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
while (!keypressed())
textprintf(screen, font, 0, 0, 5, "%d", retr);
allegro_exit();
return 0;
}
// This should make a small number go in the corner of you screen.
// Any key makes it exit. Should work on any computer (did for mine).
--
"DeHackEd"
My Email address in the header is fake (spammers). Email me at this address:
http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
- Raw text -