=> R0 = Redraw block as returned by Wimp
R1 = Zap redraw block with r_data containing the text to redraw
<= R0 and flags corrupted.
This SWI performs the calls to Wimp_RedrawWindow,
Wimp_GetRectangle, ZapRedraw_GetRectangle, and
ZapRedraw_RedrawArea for you. All of the redraw block should be setup apart from
rectangle to draw and the scroll offsets which are filled in for you. This call is equivalent to
the basic code:
SYS "Wimp_RedrawWindow",,data% TO flag%
WHILE flag%
SYS "ZapRedraw_GetRectangle",data%,redraw%
SYS "ZapRedraw_RedrawArea",,redraw%
SYS "Wimp_GetRectangle",,data% TO flag%
ENDWHILE
where redraw% is the address of the redraw block and
data% the data block returned by Wimp_Poll for
event 1 (redraw window request).
|
|
|