Showing changes from revision #1 to #2:
Added | Removed | Changed
uint HAL_Video_ReadPaletteEntry(uint type, uint pcolour, uint index)
Entry | |
---|---|
type | 0 for normal palette entry |
1 for border colour | |
2 for pointer colour | |
>=3 reserved | |
pcolours | Palette to block of palette entry colours in BBGGRRSS format (Blue,Green,Red,Supremacy) |
index | Index of entry |
Exit | |
---|---|
- | Returns effective BBGGRRSS |
Returns This the is effective an palette internal entry call after for taking OS into use account only any and hardware should not be used by user software. User software should useGraphicsV restrictions instead in of interacting with the video controller, assuming it was originally programmedHAL with directly. the value pcolour.
Indices Returns are the effective palette entry after taking into account any hardware restrictions in the range video 0..255 controller, for assuming normal, it 0 was for originally border, programmed 0..3 with for the pointer value pcolour.
colours. Note that RISC OS only makes calls using 1..3 for the pointer, and
pointer colour 0 is assumed to be transparent.
Depending Indices on are harwdware in capabilities, the HALs range may 0..255 have for to normal, remember 0 current for border, 0..3 for pointer colours. Note thatRISC settings OS (eg. only bits makes per calls pixel) using or 1..3 keep for soft the copies pointer, of and entries. pointer Because colour this 0 is assumed to be transparent.
call supplies the original pcolour, this need is minimised (some HALs can
just return pcolour or a directly modified pcolour).
Depending on harwdware capabilities, HALs may have to remember current settings (eg. bits per pixel) or keep soft copies of entries. Because this call supplies the original pcolour, this need is minimised (some HALs can just return pcolour or a directly modified pcolour).