ScrToWin Function (ROM Call 0x2D)

graph.h

WIN_RECT *ScrToWin (const SCR_RECT *rect);

Converts a structure of type SCR_RECT to type WIN_RECT.

ScrToWin accepts a pointer rect to the structure of type SCR_RECT and returns a static pointer to a structure of type WIN_RECT which represents the same rectangular area. It is stored at a fixed place in memory, which means that you cannot write something like:

foo (ScrToWin (&r1), ScrToWin (&r2));


Used by: cmd_disp, cmd_input, cmd_inputstr, cmd_output, cmd_pause, cmd_prompt, MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, DrawWinBorder, ROM Call 0x421