Function getDisplayFactor

#include <Geode/utils/general.hpp>floatgetDisplayFactor()

Gets the display pixel factor for the current screen, i.e. the ratio between physical pixels and logical pixels on one axis. On most platforms this is 1.0, but on retina displays for example this returns 2.0.

Examples0