Ultra High Definition Displays support
void SetUHDMode(bool b)
Sets the UHD mode.
Returns true if UHD mode is active.
Sets the UHD mode if current GUI font is bigger than 27 pixels (in windows, that corresponds to text size bigger than approximately 160%).
Image DPI(const Image& img)
Eventually upscales or downscales img based on its UHD flag and current mode. Standard images are upscaled 2x in UHD mode, UHD images are downscaled 2x in standard mode.
Image DPI(const Image& img, int expected)
Upscales img 2x if its height is less than or equal to expected and UHD mode is active.
int DPI(int a)
Returns 2 * a if UHD is active and a otherwise.
Size DPI(Size sz)
Returns 2 * sz if UHD is active and sz otherwise.