diff --git a/src/ui/windows/console_tab.cpp b/src/ui/windows/console_tab.cpp index ca8b9b1..f19d70b 100644 --- a/src/ui/windows/console_tab.cpp +++ b/src/ui/windows/console_tab.cpp @@ -611,7 +611,7 @@ void ConsoleTab::drawToolbarStatus(ConsoleCommandExecutor& exec) ImVec2 cp = ImGui::GetCursorScreenPos(); float dotR = schema::UI().drawElement("tabs.console", "status-dot-radius-base").size + schema::UI().drawElement("tabs.console", "status-dot-radius-scale").size * Layout::hScale(); float dotY = cp.y + ImGui::GetTextLineHeight() * 0.5f; - float dotX = cp.x + dotR + 2; + float dotX = cp.x + dotR + 2.0f * Layout::dpiScale(); if (st.pulse) { float a = schema::UI().drawElement("animations", "pulse-base-glow").size + schema::UI().drawElement("animations", "pulse-amp-glow").size * (float)std::sin((double)ImGui::GetTime() * schema::UI().drawElement("animations", "pulse-speed-fast").size); @@ -621,7 +621,7 @@ void ConsoleTab::drawToolbarStatus(ConsoleCommandExecutor& exec) dl->AddCircleFilled(ImVec2(dotX, dotY), dotR, st.color); } - ImGui::Dummy(ImVec2(dotR * 2 + 6, 0)); + ImGui::Dummy(ImVec2(dotR * 2 + 6.0f * Layout::dpiScale(), 0)); ImGui::SameLine(); Type().textColored(TypeStyle::Caption, st.color, st.text.c_str()); } else {