| ScrToHome | Function (ROM Call 0x2E)

graph.h

SCR_RECT *ScrToHome (SCR_RECT *rect);

Shifts structure of type SCR_RECT to the home position.

ScrToHome modifies the structure pointed to by rect so that the modified structure will represent the same-shape rectangular area, but with topleft corner at position (0, 0). ScrToHome returns rect back (but note that the structure pointed to by it is modified).

Used by: cmd_disp, cmd_input, cmd_inputstr, cmd_output, cmd_pause, cmd_prompt, WinLineNC