SD_SETSZ/IOW_SSIZ
This trap sets the character size and spacing.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $2D | D0.L | Error return. |
D1.W | Width | D1.L | Corrupted. |
D2.W | Height | D2.L | Preserved. |
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 width in D1.W can be any of 0 to 3 as follows:
- 0 single width (5 pixels) in 6 pixel space
- 1 single width (5 pixels) in 8 pixel space
- 2 double width (10 pixels) in 12 pixel space
- 3 double width (10 pixels) in 16 pixel space
- The height in D2.W can be 0 or 1 as follows:
- 0 single height (9 pixels) in 10 pixel space
- 1 double height (18 pixels) in 20 pixel space
- Calls in mode 8 with D1 = 0 or 1 are treated as calls with D1 = 2 or 3 respectively. No error is signalled.
Example
The example below shows the use of this trap. It is assumed that A0 contains the window's ID.
size moveq #sd_setsz,d0 ; $2D moveq #3,d1 ; Largest width moveq #1,d2 ; Largest height moveq #-1,d3 ; Timeout trap #3 ; Set the new size and spacing tst.l d0 ; OK? . . bne error ; . . no!