4830a2cf3c5e39865b97c504ba3f429d9cb2b684

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix tab rounding on non 1.0 dpi values

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 862211339ba2457dca70736da4673561fd909703..217b88e6e9415ea5059b9d6d59e629f6f62f2388 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -142,7 +142,7 @@ void Hy3TabBarEntry::prepareTexture(float scale, CBox& box) {
 6 	auto width = box.width;
 7 	auto height = box.height;
 8 
 9-	auto rounding = std::min((double) *s_rounding, std::min(width * 0.5, height * 0.5));
10+	auto rounding = std::min((double) *s_rounding * scale, std::min(width * 0.5, height * 0.5));
11 
12 	if (this->texture.m_iTexID == 0
13 	    // clang-format off