From fda1377c44d3cdb6d5ee94ce27a5cd9b97432954 Mon Sep 17 00:00:00 2001 From: crueter Date: Mon, 6 Apr 2026 13:30:57 -0400 Subject: [PATCH] [desktop] Use pixel-based font sizes instead of point-based for game card Archaic systems that still don't utilize point sizes properly should like this. Signed-off-by: crueter --- src/yuzu/game/game_card.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/yuzu/game/game_card.cpp b/src/yuzu/game/game_card.cpp index ba60b54fcc..22966d6337 100644 --- a/src/yuzu/game/game_card.cpp +++ b/src/yuzu/game/game_card.cpp @@ -77,9 +77,6 @@ void GameCard::paint(QPainter* painter, const QStyleOptionViewItem& option, } if (UISettings::values.show_game_name.GetValue()) { - // if "none" is selected, pretend there's a - _iconsize = _iconsize ? _iconsize : 96; - // padding + text QRect textRect = cardRect; textRect.setTop(iconRect.bottom() + 8); @@ -95,8 +92,7 @@ void GameCard::paint(QPainter* painter, const QStyleOptionViewItem& option, font.setBold(true); // TODO(crueter): fix this abysmal scaling - // If "none" is selected, then default to 8.5 point font. - font.setPointSize(1 + std::max(7.0, _iconsize ? std::sqrt(_iconsize * 0.6) : 7.5)); + font.setPixelSize(1.5 + std::max(10.0, _iconsize ? std::sqrt(_iconsize) : 10.0)); // TODO(crueter): elide mode painter->setFont(font);