Message-ID: <386FCE52.DA9E14BC@sympatico.ca> From: Travis Capener X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: allegro References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 69 Date: Sun, 02 Jan 2000 22:16:52 GMT NNTP-Posting-Host: 216.209.46.219 X-Trace: news20.bellglobal.com 946851412 216.209.46.219 (Sun, 02 Jan 2000 17:16:52 EDT) NNTP-Posting-Date: Sun, 02 Jan 2000 17:16:52 EDT Organization: Sympatico To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Valkir, There are many ways to do it. Keeping with the way you started, it isn't necessary to erase the whole screen each frame. You only need to erase the area where the box was drawn, then move the box, and redraw it. Here is how I re-wrote the code: #include int posX=10; void draw_screen(BITMAP *bmp) { int x,y; for(x=posX;x Hello. > I have that simple program, just to test the speed of allegro. > here it is. > int posX=10; > void draw_screen(BITMAP *bmp) > { [...and so on...]