Fix imgui scaling w/ latest aurora

This commit is contained in:
Luke Street
2026-04-07 11:40:12 -06:00
parent a6d881be8f
commit 9a365f37f2
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ static void Warp(const CAssetId worldId, TAreaId aId) {
}
}
static inline float GetScale() { return ImGui::GetCurrentContext()->CurrentDpiScale; }
static inline float GetScale() { return 1.f; }
void ImGuiConsole::ShowMenuGame() {
if (g_Main != nullptr) {
+1 -2
View File
@@ -31,6 +31,7 @@ void ImGuiEngine_Initialize(float scale) {
ImGui::GetCurrentContext();
ImGuiIO& io = ImGui::GetIO();
io.Fonts->Clear();
io.FontGlobalScale = scale > 0.0f ? 1.0f / scale : 1.0f;
auto* fontData = ImGui::MemAlloc(NOTO_MONO_FONT_DECOMPRESSED_SZ);
{
@@ -128,8 +129,6 @@ void ImGuiEngine_Initialize(float scale) {
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f);
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f);
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
style.ScaleAllSizes(scale);
}
Icon GetIcon() {