Skip to content

Commit 5bedbf8

Browse files
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

menu/drivers/xmb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ static void xmb_render_messagebox_internal(
13621362
video_height,
13631363
xmb->alpha,
13641364
0,
1365-
scale_factor,
1365+
1,
13661366
col,
13671367
xmb->shadow_offset / 2,
13681368
mymat);
@@ -1435,7 +1435,7 @@ static void xmb_render_messagebox_internal(
14351435
video_height,
14361436
xmb->alpha,
14371437
0,
1438-
scale_factor,
1438+
1,
14391439
col,
14401440
xmb->shadow_offset / 2,
14411441
mymat);

0 commit comments

Comments
 (0)