Quote:
Originally Posted by Thomas Richter
Do NOT poke the hardware directly, even more so as this is a graphics primitive that is easily available from the operating system. The corresponding function is called ScrollRaster() in the graphics.library.
|
Hm... ScrollRaster() needs a RastPort (as the name implies), which is fine in most cases. You can even call it on the RastPort of a Screen, if there are no Windows open on it whose contents would be affected. No clipping is performed, which should make it reasonably fast.
If there is no need for clipping via the RastPort or the Layer it is a part of, then BltBitMap() might just do the minimum required, and nothing more. Could be worth a try. You may have to call BltBitMap() on the column of pixels which the blit operation did not copy. ScrollRaster() would have filled that column with the current background colour.