[comp.sys.amiga] Forbid/Permit and graphics

dale@amiga.UUCP (05/12/87)

Both the rp_mask and bm_depth are used in the low level blit functions.
The number of blitplanes blitted is the smaller of either source
or destination blit. The Mask is used on those bitplanes then.
So it doesn't do anything smarter like assume a bitplane is zero
if the destination has room for it but there is no source.
Oh well, maybe 1.3

Forbid and Permit are sometimes used too much, other routines may
do just as well. In the case of preventing Intuition from moving
windows around while you are busy rendering, you can use
LockLayer, turns out everygraphics primitive that needs the bitmap
does this internally, but that only provides protects that one
operation. If you have a sequence of operations that need to be
protected from intuition, you should first.
LockLayer()
  do you stuff
  muck with the mask etc,
  draw with the new mask,
  restore the mask
UnlockLayer()

This has the advantage in that it does not throw the amiga into a forbid
permit tizzy, and prevent other legit operations from going on.
Dale