Best way to get smooth horizonital scrolling?

3 posts / 0 new
Last post
LyleHaze
LyleHaze's picture
Offline
Last seen: 2 years 1 week ago
Joined: 2011-05-26 03:58
Best way to get smooth horizonital scrolling?

The contents of some windows need to scroll smoothly from right to left..

I would prefer to open a bitmap 3 or 4 times wider than the window and just
increment a leftedge pointer somewhere.. redrawing only as I near the right edge
of the big bitmap.
I assume that SuperBitmap and GimmeZeroZero are the way to go, but I don't
know yet how to control the left edge starting position..

Or I could be trying to do this the wrong way entirely.

Clues and keywords gratefully requested.

Thank You,
LyleHaze

salass00
salass00's picture
Offline
Last seen: 6 months 1 week ago
Joined: 2011-02-03 11:27
The function you need to use

The function you need to use to scroll a superbitmap window is ScrollLayer() from layers.library (use window->RPort->Layer for the layer pointer). I would post a source code example but I wasn't able to find the source code in question (it might be that it's on another machine or I may have deleted it by mistake).

You can find more information about superbitmap windows here.

LyleHaze
LyleHaze's picture
Offline
Last seen: 2 years 1 week ago
Joined: 2011-05-26 03:58
Thank You! I don't mind

Thank You!
I don't mind looking it up myself, I just needed a lead on where to start.

LyleHaze

Log in or register to post comments