RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "Wimp_AddMessages/versions/new" does not exist. Please create it now, or hit the "back" button in your browser.

ColourTrans_ReturnGCOLForMode

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_ReturnGCOLForMode

ColourTrans_ ReturnGCOLForMode

(SWI &40745)
Entry
R0 Palette entry
R1 Destination mode, or -1 for current mode
R2 Destination palette pointer, or
  -1 for current palette, or
  0 for default for the current mode
Exit
R0 GCOL
R1 Preserved
R2 Preserved

Use

This purpose of this call is to return the closest GCOL, given a specific palette entry with the destination screen mode and palette.

Notes

The 24-bit palette entries are in the &BBGGRR00 format.

GCOL is only of use for 256 colour screen modes.

See also

  • ColourTrans_ReturnColourNumber
  • ColourTrans_ReturnColourNumberForMode
  • ColourTrans_ReturnFontColours
  • ColourTrans_ReturnGCOL
Created on September 27, 2009 14:01:40 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: ColourTrans SWI Calls, ColourTrans_ReturnColourNumber, ColourTrans_ReturnColourNumberForMode, ColourTrans_ReturnGCOL, ColourTrans_ReturnFontColours, ColourTrans_ReturnOppGCOL, Colour Vector SWI Numbers

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys