Fix tab rounding on non 1.0 dpi values

This commit is contained in:
outfoxxed 2023-12-10 17:00:35 -08:00
parent 102e652fe9
commit 4830a2cf3c
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -142,7 +142,7 @@ void Hy3TabBarEntry::prepareTexture(float scale, CBox& box) {
auto width = box.width; auto width = box.width;
auto height = box.height; 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 if (this->texture.m_iTexID == 0
// clang-format off // clang-format off