Fix font corruption caused by Font Awesome icon button in Data window

This commit is contained in:
nebel 2026-01-03 00:49:51 +09:00
parent 79ce2fff0a
commit 49abb19673
No known key found for this signature in database

View file

@ -114,7 +114,7 @@ internal class FontAwesomeTestWidget : IDataWindowWidget
Task.FromResult(
Service<TextureManager>.Get().CreateTextureFromSeString(
ReadOnlySeString.FromText(this.icons[i].ToIconString()),
new() { Font = ImGui.GetFont(), FontSize = ImGui.GetFontSize() })));
new() { Font = ImGui.GetFont(), FontSize = ImGui.GetFontSize(), ScreenOffset = Vector2.Zero })));
}
ImGui.PopFont();