From c58c3dd3113dd4b4ba3f67380d610053fb86175a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 9 Dec 2023 16:20:58 +0100 Subject: [PATCH] impr: Make banner not as obnoxiously big --- plugins/builtin/source/content/welcome_screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index a2a6db73a..e865e62f1 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -342,14 +342,14 @@ namespace hex::plugin::builtin { } if (s_infoBannerTexture.isValid()) { - auto width = ImGui::GetContentRegionAvail().x - windowPadding; static bool hovered = false; ImGui::PushStyleColor(ImGuiCol_Border, ImGui::GetStyleColorVec4(hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Border)); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); ImGuiExt::BeginSubWindow("hex.builtin.welcome.header.info"_lang, ImVec2(), ImGuiChildFlags_AutoResizeX); { - ImGui::Image(s_infoBannerTexture, ImVec2(width, width / s_infoBannerTexture.getAspectRatio())); + const auto height = 80_scaled; + ImGui::Image(s_infoBannerTexture, ImVec2(height * s_infoBannerTexture.getAspectRatio(), height)); hovered = ImGui::IsItemHovered(); if (ImGui::IsItemClicked()) {