From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: config/lua: init lua config manager, use lua if available (#13817) Adds a new lua config manager, which will automatically be used if there is a lua config present. --- src/errorOverlay/Overlay.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/errorOverlay/Overlay.cpp') diff --git a/src/errorOverlay/Overlay.cpp b/src/errorOverlay/Overlay.cpp index 928d7800..2fbdd497 100644 --- a/src/errorOverlay/Overlay.cpp +++ b/src/errorOverlay/Overlay.cpp @@ -108,9 +108,9 @@ void COverlay::createQueued() { const float SCALE = PMONITOR->m_scale; const int FONTSIZE = std::clamp(sc(10.f * ((PMONITOR->m_pixelSize.x * SCALE) / 1920.f)), 8, 40); - static auto LINELIMIT = CConfigValue("debug:error_limit"); - static auto BAR_POSITION = CConfigValue("debug:error_position"); - static auto FONT_FAMILY = CConfigValue("misc:font_family"); + static auto LINELIMIT = CConfigValue("debug:error_limit"); + static auto BAR_POSITION = CConfigValue("debug:error_position"); + static auto FONT_FAMILY = CConfigValue("misc:font_family"); const bool TOPBAR = *BAR_POSITION == 0; const std::string visibleText = buildVisibleText(m_queued, *LINELIMIT); @@ -199,7 +199,7 @@ void COverlay::draw() { if (!PMONITOR) return; - static auto BAR_POSITION = CConfigValue("debug:error_position"); + static auto BAR_POSITION = CConfigValue("debug:error_position"); const bool TOPBAR = *BAR_POSITION == 0; const float barWidth = std::max(1.F, sc(PMONITOR->m_pixelSize.x) - m_outerPad * 2.F); -- cgit v1.2.3