From: "b279" Newsgroups: comp.os.msdos.djgpp Subject: Re: while loops and for loops Date: Mon, 1 Oct 2001 21:32:41 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3BB8D340 DOT 8626FF2F AT earthlink DOT net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: newsabuse AT supernews DOT com Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com #include #include #include #include void startup(void); main() { startup(); srand(time(0)); while (!kbhit()) putpixel(screen, rand()%SCREEN_W, rand()%SCREEN_H, rand()%255); return 0; } void startup(void) { allegro_init(); install_keyboard(); set_gfx_mode(GFX_VGA, 320, 200, 0, 0); set_pallete(desktop_pallete); } is it because of the install_keyboard() function?