From 4830a2cf3c5e39865b97c504ba3f429d9cb2b684 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 10 Dec 2023 17:00:35 -0800 Subject: [PATCH] Fix tab rounding on non 1.0 dpi values --- src/TabGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp index 8622113..217b88e 100644 --- a/src/TabGroup.cpp +++ b/src/TabGroup.cpp @@ -142,7 +142,7 @@ void Hy3TabBarEntry::prepareTexture(float scale, CBox& box) { auto width = box.width; auto height = box.height; - auto rounding = std::min((double) *s_rounding, std::min(width * 0.5, height * 0.5)); + auto rounding = std::min((double) *s_rounding * scale, std::min(width * 0.5, height * 0.5)); if (this->texture.m_iTexID == 0 // clang-format off