aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2026-04-07 00:04:16 +0200
committercrueter <crueter@eden-emu.dev>2026-04-07 00:04:16 +0200
commit50a6f331cf0a11e4d6eac8decfe6965097b99082 (patch)
tree199aba02f9e2bbb8b0f7b4721aece67889873b4d /src
parent9c13c71da8dcc37d03fc53bc3bc16978a65fd8f2 (diff)
[desktop] Use pixel-based font sizes instead of point-based for game card (#3827)
Archaic systems that still don't utilize point sizes properly should like this. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3827
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game/game_card.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/yuzu/game/game_card.cpp b/src/yuzu/game/game_card.cpp
index b1ea762f8c..05167fe455 100644
--- a/src/yuzu/game/game_card.cpp
+++ b/src/yuzu/game/game_card.cpp
@@ -92,9 +92,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() + margins);
@@ -110,8 +107,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, std::sqrt(_iconsize)));
// TODO(crueter): elide mode
painter->setFont(font);