Example:
auto dpi = screenDpi(0);
if (dpi.horizontal > 120) {
// High DPI screen, scale UI
}Gets the DPI (dots per inch) of a screen.
screen | Screen number (0 to screenCount-1) |
Example:
auto dpi = screenDpi(0);
if (dpi.horizontal > 120) {
// High DPI screen, scale UI
}