This SMSQ/E trap sets the wallpaper.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $6B | D0.L | Error code |
D1.L | Colour code | D1.L | Preserved? |
D2.L | Image code | D2.L | Preserved? |
D3.W | Timeout | D3.L | Preserved. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | Address of Image | A1.L | Preserved. |
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
The example below shows the use of this trap call to set a QL colour background. It is assumed that A0 contains the ID of a valid screen channel.
wallp moveq #-1,d3 ; Timeout moveq #119,d1 ; A QL stipple colour moveq #-1,d2 ; No image moveq #iop_wpap,d0 ; $6B trap #3 ; Set the background colour tst.l d0 ; OK? . . bne error ; . . no!