Re: Deleting sprites



In article <4e602c350cUCEbin@xxxxxxxxxxxxx>, John Williams (News)
<UCEbin@xxxxxxxxxxxxx> wrote:
In article <4e602b4bc5Ian.Hamilton@xxxxxxxx>, Ian Hamilton
<Ian.Hamilton@xxxxxxxx> wrote:

I can't see from PRM1 p781 how I would do this, as it doesn't seem
to reference the WIMP sprite pool. Should I be using Wimp_SpriteOP
instead - if so, how?

SYS "OS_SpriteOp",25,,"nameofsprite"

That complains 'No memory is reserved for the system sprite area ...',
suggesting that's where it's trying to point. It's the WIMP sprite pool
I want to delete from.

I see, you need to get the address of the area using :-

SYS "Wimp_BaseOfSprites" TO ,rmasprites%

Ian

--
Ian Hamilton (RISC PC RO4) http://www.hamiltoni.pwp.blueyonder.co.uk/
(Iyonix RO5) Programs compatible with RISC OS 3/4/5

.



Relevant Pages

  • Re: Deleting sprites
    ... In article, John Williams (News) ... single-tasking BASIC program. ... reference the WIMP sprite pool. ...
    (comp.sys.acorn.programmer)
  • Re: Deleting sprites
    ... Buzby wrote: ... to reference the WIMP sprite pool. ...
    (comp.sys.acorn.programmer)
  • Re: Deleting sprites
    ... Buzby wrote: ... to reference the WIMP sprite pool. ... The Wimp Sprite Pool DOES NOT BELONG TO YOU. ... Like any resource which doesn't belong to you, ...
    (comp.sys.acorn.programmer)
  • Re: Deleting sprites
    ... Ian Hamilton wrote: ... to reference the WIMP sprite pool. ... suggesting that's where it's trying to point. ...
    (comp.sys.acorn.programmer)