Wimp_SetIconState block

David J. Ruck druck at druck.org.uk
Sun Aug 25 14:16:52 BST 2002


On 25 Aug 2002 Philip Ludlam <philip at philipnet.com> wrote:
> Whilst programming with OSLib I discovered that OSLib didn't define a
> block suitable for the Wimp_SetIconState SWI.
> 
> I quickly whipped up:
> typedef struct wimp_set_icon_state_block
> { wimp_w w;
>   wimp_i i;
>   wimp_icon_flags eor_bits;
>   wimp_icon_flags clear_bits;
> } wimp_set_icon_state_block;
> and have been using it without a problem.
> 
> Is there a reason why OSLib doesn't have a similar definition (does it
> expect you to use the oslib call rather than set up a block and call the
> SWI yourself) or is it just an omission?

There is the wimp_set_icon_state(), but strangely instead of taking a block
like the majority of other APIs, it takes 4 parameters saves them on to the 
stack and makes the SWI call. This is going to be less efficent where
multiple calls are required, so please can we have block taking variant.

Cheers
---Dave

-- 
____________________________________________________________________________

  David J. Ruck    Phone: +44- (0)7974 108301    Email: druck at druck.org.uk
____________________________________________________________________________



More information about the oslib-user mailing list