The OpenD Programming Language

getDpi

Returns the logical DPI of the default monitor. [0] is width, [1] is height (they are usually the same though). You may wish to round the numbers off. This isn't necessarily related to the physical side of the screen; it is associated with a user-defined scaling factor.

If you want per-monitor dpi values, check SimpleWindow.actualDpi, but you can fall back to this if it returns 0.

float[2]
getDpi
()

Meta