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

Mode Variable Numbers

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_SetMode
» Mode Specifier Block
» Mode Variable Numbers

Mode Variable Numbers

Value Name Meaning
0 ModeFlags Returns values only
1 ScrRCol Number of text columns -1
2 ScrBRow Number of text rows -1
3 Ncolour Maximum logical colour
4 XEigFactor Indicates the number of bits by which an x co-ordinate must be shifted right to convert to screen pixels. E.g. for a value of n, then one screen pixel corresponds to 2n external co-ordinates in the x direction
5 YEigFactor Indicates the number of bits by which an y co-ordinate must be shifted right to convert to screen pixels. E.g. for a value of n, then one screen pixel corresponds to 2n external co-ordinates in the y direction
6 LineLength Number of bytes per pixel row
7 ScreenSize Number of bytes for entire screen display
8 YShiftSize Deprecated. Do not use
9 Log2BPP Log base 2 of bits per pixel
10 Log2BPC Log base 2 of bytes per character
11 XWindLimit Number of x pixels on screen – 1
12 YWindLimit Number of y pixels on screen -1

Notes

The Mode Variable can be used when setting a screen mode using Wimp_SetMode or when returning details about the current screen mode using OS_ReadModeVariables?

Value 0 has no meaning when used in conjunction with Wimp_SetMode, as it is used to return values.

See also

  • Mode Flags
  • Mode Specifier Block
  • OS_ReadModeVariable
  • Wimp_SetMode
Revised on January 31, 2010 15:42:02 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Mode Specifier Block, Mode Flags, OS_ReadModeVariable, OS_ReadVduVariables, VDU Variables, Fast Horizontal Line Draw Routine, GCOL OR and EOR Address, ECF Block, VIDC Workspace List

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