Home  /  Autodocs  /  layers.library

NAME

SortLayerCR
Sort the layer's cliprects for scroll raster (V39)

SYNOPSIS

SortLayerCR(layer, dx, dy)
A0 D0 D1

VOID SortLayerCR(struct Layer *, WORD, WORD);

FUNCTION

This function will sort the give layer's cliprects such that a scroll in the direction given will be optimal.

NOTES

This routine is for Layers/Graphics internal use only. The layer must be locked before calling this routine.

INPUTS

layer
The layer to be sorted...

dx
x scroll offset

dy
y scroll offset