ui: limit scaling further on small low-resolution screens (retroid)
This commit is contained in:
parent
e538242962
commit
8bb0bd05f9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue