| ScrRect | Variable (ROM Call 0x2F)

graph.h

SCR_RECT *const ScrRect;

A global pointer to a SCR_RECT structure representing the whole screen.

ScrRect is a (constant) pointer to a SCR_RECT structure set by TIOS to point to a structure which represents the whole screen area without the status line. So, if you don't need drawing in the status line, you can set the default clipping area using the SetCurClip command like

    SetCurClip (ScrRect);

or, you can use ScrRect in a command which needs clipping area parameter explicitely (such command is DrawClipEllipse, for example):

    DrawClipEllipse (50, 50, 30, 20, ScrRect, A_NORMAL);

ScrRect may be used also to determine a calculator type. If

    ScrRect->xy.x1 == 159

then the calculator is a TI-89 or TI-89 Titanium, else it is a TI-92 Plus or V200.
Note: ScrRect is a variable, so it may be changed (more precise, the structure on which it points may be changed). By changing it, it is possible to force some TIOS commands which normally can not access to the status line area to get the access to this "forbidden" zone, or to force some commands to use only smaller part of the screen. Use this possibility with great care, and only if you know exactly what you are doing!

Used by: assert, MenuEnd, MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, fputchar, paint_all_except, UpdateWindows, WinClr, WinRemove, ROM Call 0x3EA, ROM Call 0x421