From ebaef81aae720e28a342c0f8c2cd598993d0760f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 31 Jan 2024 00:16:06 +1000 Subject: [PATCH] ImGuiFullscreen: Don't clamp scale to 1.0 --- src/util/imgui_fullscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/imgui_fullscreen.cpp b/src/util/imgui_fullscreen.cpp index 7fa799701..583c25fb8 100644 --- a/src/util/imgui_fullscreen.cpp +++ b/src/util/imgui_fullscreen.cpp @@ -419,14 +419,14 @@ bool ImGuiFullscreen::UpdateLayoutScale() if (screen_ratio > LAYOUT_RATIO) { // screen is wider, use height, pad width - g_layout_scale = std::max(screen_height / LAYOUT_SCREEN_HEIGHT, 1.0f); + g_layout_scale = std::max(screen_height / LAYOUT_SCREEN_HEIGHT, 0.1f); g_layout_padding_top = 0.0f; g_layout_padding_left = (screen_width - (LAYOUT_SCREEN_WIDTH * g_layout_scale)) / 2.0f; } else { // screen is taller, use width, pad height - g_layout_scale = std::max(screen_width / LAYOUT_SCREEN_WIDTH, 1.0f); + g_layout_scale = std::max(screen_width / LAYOUT_SCREEN_WIDTH, 0.1f); g_layout_padding_top = (screen_height - (LAYOUT_SCREEN_HEIGHT * g_layout_scale)) / 2.0f; g_layout_padding_left = 0.0f; }