View Single Post
Old 21 March 2024, 16:33   #13
Olaf Barthel
Registered User
 
Join Date: Aug 2010
Location: Germany
Posts: 532
Quote:
Originally Posted by Thomas Richter View Post
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.
Olaf Barthel is offline  
 
Page generated in 0.06082 seconds with 11 queries