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.