AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     flags
     R1 =     redraw block (r_bpp)
     R2 =     address of source palette
     R3 =     address for dest palette (needs 4*R4 bytes preserved)
           (source may equal destination)
     R4 =     number of palette entries (eg 16)

<=     R0 and flags corrupted

This SWI is used to create the r_palette data block. If R0 = 1 on entry
then it takes a palette consisting of a list of wimp colour numbers (one per
word) and converts it to entries of the form &BBGGRRxx, a 24 bit palette
entry by using the call Wimp_ReadPalette and
duplicating the nibbles. If R0 = 2 on entry then it takes a list of entries
of the form &BBGGRRxx and converts them to colour masks required for DSA
redraw (see r_palette) using ColourTrans calls and
ZapRedraw_GetPaletteEntry. If R0 = 3 on entry then it does both, converting
wimp colour numbers to DSA redraw masks. 
CreatePalette flags
Bit     Meaning 

0     Set to convert wimp colours to &BBGGRRxx 
1     Set to convert &BBGGRRxx to DSA colour masks 
2+     Reserved - must be 0

[sh-index] Back to list of manuals