getmaxx

The function is used to gets the maximum x-coordinate in the physical coordinates of the graphics window.

int getmaxx();

Parameters

None

Return Value

Returns the maximum x-coordinate in the physical coordinates of the graphics window.

Remarks

The function is declared in graphics.h and is used to be compatible with function of the same name in Turbo C.

getmaxx() always returns the maximum x-coordinates in the physical coordinates of the graphics window, regardless of the zoom setting. Equivalent to getwidth() - 1. For example, if the graphics window is initialized to 640 x 480, getwidth() returns 640 and getmaxx() returns 639.

It is recommended that use getwidth() - 1 instead of the function.

Examples

None