From d932f2f06e7ac4585bc300c7d31abcb60b58302b Mon Sep 17 00:00:00 2001 From: srkizer Date: Sat, 11 Jan 2025 01:52:54 +0900 Subject: [PATCH] fix: apply scale to TSM entry (#2169) --- .../Internal/Windows/TitleScreenMenuWindow.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs index 979f68bf8..ce8c192a4 100644 --- a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs +++ b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs @@ -11,7 +11,6 @@ using Dalamud.Game.ClientState; using Dalamud.Game.Gui; using Dalamud.Game.Text; using Dalamud.Interface.Animation.EasingFunctions; -using Dalamud.Interface.ImGuiSeStringRenderer; using Dalamud.Interface.ManagedFontAtlas; using Dalamud.Interface.ManagedFontAtlas.Internals; using Dalamud.Interface.Textures.TextureWraps; @@ -398,9 +397,14 @@ internal class TitleScreenMenuWindow : Window, IDisposable // Drop shadow ImGui.SetCursorPos(cursor); - var renderStyle = default(SeStringDrawParams); - renderStyle.FontSize = TargetFontSizePx; - ImGuiHelpers.CompileSeStringWrapped($"{entry.Name}", renderStyle); + ImGuiHelpers.SeStringWrapped( + ReadOnlySeString.FromText(entry.Name), + new() + { + FontSize = TargetFontSizePx * ImGui.GetIO().FontGlobalScale, + Edge = true, + Shadow = true, + }); if (overrideAlpha) {