FUNCTIONS GT

GTI_PIXELDENSITY

Return the pixels of the display per window unit

Syntax

Signature
GtInfo( GTI_PIXELDENSITY ) --> nDensity

Arguments

GTI_PIXELDENSITY

The selector, from gtinfo.ch.

Return value

GTI_OUTPUTWIDTH divided by GTI_WINDOWWIDTH, for example 2.0 on a Retina display. GTWVT returns 1.0.

Description

It shows how many real pixels the system draws for one unit of the window size.

Notes

Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.

Output

See also