Subject: SprExtend2
Author: David De Vorchik
History:
30-Jan-91 DDeVorchik Created.
05-Feb-91 DDeVorchik Extended exit params on read size.
This document covers changes made to SpriteExtend after v0.28, these include
the following:
- Adding, removing and checking sprite palettes.
SpriteReason_CreateRemovePalette
in: r0 = 37, SpriteReason_CreateRemovePalette (+0 / +256 / +512)
r1 -> sprite control block
r2 -> sprite name / -> sprite
r3 = reason code
- -1 : read current palette size
- 0 : remove palette from sprite
<> 0 : add palette to sprite
out: V=1 => r0 -> error block
if r3 =-1 on entry then; r3 = size palette (=0 if none), else all preserved.
r4 -> palette (=0 if none)
r5 = mode
This call simply adds, removes or returns the size of a palette associated
with a given sprite.
It should be noted then when output is switched to a sprite and the palette
is added or removed from it the current display pointers will become invalid
so you should switch output away, modify the palete and switch output back
to the sprite.