| RectWinToWin | Function (ROM Call 0x29)

wingraph.h

WIN_RECT *RectWinToWin (const SCR_RECT *win_area, WIN_RECT *rect);

Converts relative window coordinates to absolute coordinates.

RectWinToWin converts coordinates in the structure rect (which are assumed to be relative to the topleft corner of the structure win_area) to the absolute screen coordinates. The converted coordinates are stored again in structure pointed to by rect. RectWinToWin returns rect back (but note that the structure pointed to by it is modified).

Used by: WinFillLines2, WinLine, WinLineNC, WinLineTo, WinRect, WinLineExt