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

OS_ScreenMode 11

OS SWI Calls
» OS_ScreenMode
» OS_ScreenMode 11

OS_ScreenMode 11

(SWI &65)
Entry
R0 11
R1 New GraphicsV Device / VideoV Display number, or -1 to read current
Exit
R1 Previous (or current, if reading) driver number
All other registers preserved

Use

The purpose of this call is to select the active video driver, or to return the current driver.

Notes

An error will be returned if the selected Device or Display does not exist, or if the driver refuses to activate.

On RISC OS 5 this selects which GraphicsV Device driver is in use, while on RISC OS Select this selects which VideoV? Display driver is in use.

On RISC OS 5 the value -2 will be returned in R1 if no driver is active. -2 can also be passed in to deactivate the video system, however this is inadvisable as the OS does not fully cope with no driver being active.

Under both RISC OS 5 and RISC OS Select, Service_DisplayChanged will be issued as appropriate in order to notify the rest of the system that the current driver is changing.

See also

  • OS_ScreenMode
  • GraphicsV
  • Service_DisplayChanged
Other languages documentation

Français

Revised on June 24, 2018 12:53:35 by nemo (145)

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.
Site design © RISC OS Open Limited 2018 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