SD_FLOOD/IOG_FILL
This trap sets the graphics fill mode on or off. Once the mode has been set on, all non re-entrant shapes produced thereafter by the graphics traps will be filled with the ink colour until the mode is set off.
A non re-entrant shape is a closed curve such that no horizontal line passes through more than two points of the curve.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $35 | D0.L | Corrupted? |
D1.L | Mode key | D1.L | Corrupted. |
D3.W | Timeout | D3.L | Preserved. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | A1.L | Corrupted. |
Errors
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
Notes
- All registers not shown above are not used on entry and are preserved on exit.
- The mode key in D1.L is 0 for off and 1 for on.
Example
The example below shows the use of this trap call to set the fill mode on.
mode moveq #1,d1 ; Set mode key to "on" moveq #sd_flood,d0 ; $35 moveq #-1,d3 ; Timeout trap #3 ; set the mode on tst.l d0 ; OK? . . bne error ; . . no!