; ; screen.sh ; ; Screen mode information caching ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's Sapphire library. ; ; Sapphire is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; Sapphire is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with Sapphire. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; screen_getInfo ; screen_cache ; screen_justChangedMode ; screen_init [ :LNOT::DEF:screen__dfn GBLL screen__dfn ; --- screen_getInfo --- ; ; On entry: -- ; ; On exit: R0 == pointer to screen information block ; ; Use: This call returns a pointer to a block of information ; about the current screen modes. The format of this block ; is defined above. IMPORT screen_getInfo ; --- screen_cache --- ; ; On entry: R12 points to workspace ; ; On exit: -- ; ; Use: Caches screen information for the current mode. IMPORT screen_cache ; --- screen_justChangedMode --- ; ; On entry: -- ; ; On exit: CS if last event was a mode change, CC otherwise ; ; Use: Informs the caller if the last event was a mode change. ; The system ignores open window requests when making it's ; decision. IMPORT screen_justChangedMode ; --- screen_init --- ; ; On entry: -- ; ; On exit: -- ; ; Use: Initialises the screen unit. IMPORT screen_init ;----- Data offsets --------------------------------------------------------- ^ 0 screen_xEig # 4 screen_yEig # 4 screen_bpp # 4 screen_width # 4 screen_height # 4 screen_dx # 4 screen_dy # 4 ] ;----- That's all, folks ---------------------------------------------------- END