| ClientToScr | Function (ROM Call 0x42C)

AMS 2.00 or higher | graph.h

void ClientToScr (const SCR_RECT *WindowRect, const SCR_RECT *Rect, SCR_RECT *Result);

Converts a window-based rectangle to screen-based coordinates.

ClientToScr adds the values of x1 and y1 in WindowRect to all x and y values in Rect, and returns the result in Result. This is usually used to convert a window-based SCR_RECT to screen-based coordinates by passing it as the second parameter to this function. The first parameter is then a screen-based SCR_RECT of the window's client region. This routine is called in SetWinClip.

Used by: SetWinClip, WinBitmapGet, WinScrollH, WinScrollV

See also: ScrToWin