(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/graphics.h>

void SetMaxPen (rp , maxpen)

LOCATION
In GfxBase at offset 165

SYNOPSIS
struct RastPort * rp
ULONG maxpen

FUNCTION
Set the maximum pen value for a rastport. This will instruct the graphics.library that the owner of the rastport will not be rendering in any colors whose index is >maxpen. Therefore speed optimizations on certain operations are possible and will be done.

Basically this call sets the rastport mask, if this would improve speed. On devices where masking would slow things down (chunky pixels), it will be a no-op.

INPUTS
rp = pointer to a valid RastPort structure maxpen = longword pen value

RESULT

EXAMPLE

SEE ALSO
SetWriteMask()

NOTES

BUGS

INTERNALS

HISTORY