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 "Part 1/versions/new/12" does not exist. Please create it now, or hit the "back" button in your browser.

ColourTrans_SetOppGCOL

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

ColourTrans_ SetOppGCOL

(SWI &40748)
Entry
R0 Palette entry
R3 0 for foreground, or 128 for background
R4 GCOL action
Exit
R0 GCOL
R2 Log~2~ of bits-per-pixel for current mode
R3 Initial value AND &80
R4 Preserved

Use

This purpose of this call is to calculate the furthest GCOL to the palette entry passed in R0 in the current mode and palette and set it.

Notes

The top three bits of R3 and R4 should be zero to allow for future expansion.

GCOL is only of use in 256 colour screen modes.

See also

  • ColourTrans_SetColour
  • ColourTrans_SetFontColours
  • ColourTrans_SetGCOL
  • ColourTrans_SetOppTextColour
  • ColourTrans_SetTextColour
Created on September 27, 2009 14:49:03 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: ColourTrans SWI Calls, ColourTrans_SetColour, ColourTrans_SetFontColours, ColourTrans_SetGCOL, ColourTrans_SetOppTextColour, ColourTrans_SetTextColour, 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