[comp.sys.amiga.tech] Attaching to the Intuition Pointer

hclausen@adspdk.CBMNET (Henrik Clausen) (03/15/90)

   I'm working on getting a very tall Intuition Pointer for a program for
disabled - they keep banging on me to make it - the 1.3 limit of 127 pixels is
too little. 
   I'm not so foolish as to attack the Intuition Sprite (#0) directly, so I
figured I'd better tack on upon it, so I ask for Sprite #1, set the
SPRITE_ATTACH flag, set a height of 255 on my sprite, and off it goes.
Anything icky in this approach?
   My system seems a bit unstable when I work on this. The Libraries&Devices
manual tells me to look in the Hardware manual. The H.M. does not care about
Intuition, but it does tell me that the two sprites should be equally tall.

   Later I'll want this tall sprite to detach and move to show the X
coordinate of that moment's position, in the full screen height. Could I just
clear the SPRITE_ATTACH bit? It seems not.
   Perhaps I'd preserve the first two sprite words, ChangeSprite to something
else, set VSTART to 0, VSTOP to 255, clear SPRITE_ATTACH, and ChangeSprite to
my new data. This should do it.

   Are the Sprites limited to 255 pixels height? Seems there's hardly room for
more in the data structures.

   And now if the limit to the Intuition Pointer was 255 (UBYTE instead of
BYTE), there'd be no problems. Coming in 1.4, you West Chester guys???

      I hope someone can enlighten me on the subject...

                        -Henrik

--
*** Henrik Clausen, Graffiti Data (Fido: 2:230/22.33, UseNet: hrc@daimi.dk) ***