cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/21/20:57:03

From: "Arthur" <arfa AT clara DOT net>
To: <djgpp AT delorie DOT com>
Subject: RE: scrolling text
Date: Wed, 21 Oct 1998 23:23:12 +0100
Message-ID: <000301bdfd41$6392ab60$5a4e08c3@arthur>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
In-Reply-To: <93117c2c.362e4cc8@aol.com>
Reply-To: djgpp AT delorie DOT com

> 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?

blit the contents of screen to a buffer BITMAP before you scroll, then
instead of clearing the screen each time blit the buffer back.

I wrote a vertical text scroller for Ouroboros
(http://www.gameprog.com/project/) which used linked lists to calculate
which image needed to be drawn at what time. The source is available at the
moment in the upload directory, if you're up to wading through reams of C++
until you find the right bit of code.

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019