From 3219ba68de1d464951d43b2a884299b937b5d270 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 20 May 2023 21:20:32 +0200 Subject: [PATCH] impr: Better layout of ImHex subtitle on welcome screen --- plugins/builtin/source/content/welcome_screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index ab6631bd8..0df35fce3 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -215,7 +215,9 @@ namespace hex::plugin::builtin { ImGui::TableNextRow(ImGuiTableRowFlags_None, ImGui::GetTextLineHeightWithSpacing() * 3); ImGui::TableNextColumn(); + ImGui::PushTextWrapPos(ImGui::GetCursorPosX() + std::min(450_scaled, availableSpace.x / 2 - 50_scaled)); ImGui::TextFormattedWrapped("A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM."); + ImGui::PopTextWrapPos(); ImGui::TableNextRow(ImGuiTableRowFlags_None, ImGui::GetTextLineHeightWithSpacing() * 6); ImGui::TableNextColumn();