Commit 5bedbf8
committed
xmb: fix confirm dialog Back/OK icons drawn at scale_factor squared
icon_size already bakes in last_scale_factor (50 * scale_factor), but
scale_factor was also passed as the xmb_draw_icon scale argument, which
re-applies it through the transform matrix. Effective icon size was
50 * scale_factor^2 instead of 50 * scale_factor, so the dpad/face-button
glyphs blew up and distorted at high resolution (correct at 1080p where
scale_factor is ~1.0, garbled at 4K where it is ~2.0). Pass 1 to match
every other xmb_draw_icon call site, which supply a pre-scaled size.1 parent f7cf730 commit 5bedbf8
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | | - | |
| 1365 | + | |
1366 | 1366 | | |
1367 | 1367 | | |
1368 | 1368 | | |
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
| 1438 | + | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| |||
0 commit comments