Wimp_PlotIcon

Jan-Jaap van der Geer janjaap at dsv.nl
Sat Jun 28 16:19:02 BST 2003


A long time ago I've brought this up, but nothing was done because
of a lack in documentation....

Wimp_PlotIcon outside the redraw loop has 2 extra inputs, the
offset (x & y). Apart from the Wimp stronghelp manual I haven't
seen this documented before, until now. With the release of Select
3, there now is some documentation (There seems to be some other
unknown features (to me at least) there too).

I cut-'n-paste:

Wimp_PlotIcon
=> R1 = pointer to icon block
   R2 = &4B534154 ('TASK')
   R3 = x origin to offset icon by (if outside redraw loop)
   R4 = y origin to offset icon by (if outside redraw loop)
   R5 = context flags :
             b0 = if set: R6 contains background colour
                          R7 contains sprite area
                  if clear: R6 contains a window handle to use for the
                            colours and sprite area
             b1 = if set: icon should be treated as if the pointer were
                          over it
                  if clear: icon should be treated as if the pointer were
                          elsewhere
             b2-31 reserved, must be 0
   R6 = window handle to use as context, or background colour
   R7 = sprite area
<= R0 corrupt
   R2 = 0

(There is some more info, so if this is needed, just say so)

>From my experience, the R3/4 work even when R2 isn't equal to
'TASK', so I suppose R2 should be used if using R5/6/7. I don't
feel the documentation is quite clear about that. But I've been
using R3/4 for years without R2 being 'TASK'...

Is there any chance this can be supported by OSLib?...

TIA,
Jan-Jaap



More information about the oslib-user mailing list