Message-ID: <013001be0168$7477fe00$a26f19c4@default> From: rylan AT intekom DOT co DOT za (StefanViljoen,6599) To: Subject: Re: scrolling text Date: Tue, 27 Oct 1998 06:48:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Reply-To: djgpp AT delorie DOT com -----Original Message----- From: DoctorXV AT aol DOT com Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com Date: Wednesday, October 21, 1998 11:06 PM Subject: scrolling text >I know how to move text but I can only do it with clearing the screen(which >cause a problem with allegro since my program has a bitmap on screen plus it >is a hassle to keep track of all the text by placing it over and over again.) >Is it possible to move text without clearing the screen? Yes - I did exactly this a while ago. I used 3 bitmaps - a temporary one that holds the whole screen, one that holds just the background the text will move over, and one into which the text is put. All you then do is make sure the one into which you put the text is filled with the transparency color (black in 8 bit modes, pink in hicolor modes in allegro) then you "slide" this bitmap over the temporary screen, copying that part of the temporary screen to video ram to show the text moving. Then you blit the one that has the text line background back over the text that is now still on the temporary bitmap, and you slide the text bitmap one step more... Get the idea? I can send you some code if you want. Kind Regards, Rylan Is truth beauty or is beauty truth? http://home.intekom.com/rylan/index.html