mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Banners not scaling properly with font size (#2096)
The banner windows did not scale with the fonts resulting in cropped text when font size was made bigger than normal. fixed by ensuring the window is big enough and then making sure text is centered in the y-axis.
This commit is contained in:
@@ -615,7 +615,7 @@ namespace hex {
|
||||
|
||||
const auto windowPos = ImHexApi::System::getMainWindowPosition();
|
||||
float startY = windowPos.y + ImGui::GetTextLineHeight() + ((ImGui::GetTextLineHeight() + (ImGui::GetStyle().FramePadding.y * 2.0F)) * (onWelcomeScreen ? 1 : 2));
|
||||
const auto height = 30_scaled;
|
||||
const auto height = ImGui::GetTextLineHeightWithSpacing() * 1.5f;
|
||||
|
||||
// Offset banner based on the size of the title bar. On macOS it's slightly taller
|
||||
#if defined(OS_MACOS)
|
||||
|
||||
Reference in New Issue
Block a user