The scrolllayer() function changes the portion of a super bitmap that is shown by a layer: void ScrollLayer( long dummy, struct Layer *layer, long dx, long dy ); This function is most useful with super bitmap layers but can also simulate the effect on other layer types by adding the scroll offset to all future rendering.