ui: limit scaling further on small low-resolution screens (retroid)

This commit is contained in:
Flyinghead 2022-01-16 09:58:33 +01:00
parent e538242962
commit 8bb0bd05f9
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void gui_init()
scaling = std::max(1.f, screen_dpi / 100.f * 0.75f); scaling = std::max(1.f, screen_dpi / 100.f * 0.75f);
// Limit scaling on small low-res screens // Limit scaling on small low-res screens
if (settings.display.width <= 640 || settings.display.height <= 480) if (settings.display.width <= 640 || settings.display.height <= 480)
scaling = std::min(1.4f, scaling); scaling = std::min(1.2f, scaling);
#endif #endif
if (scaling > 1) if (scaling > 1)
ImGui::GetStyle().ScaleAllSizes(scaling); ImGui::GetStyle().ScaleAllSizes(scaling);