mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
fix OSD background alignment with non-default X/Y positions
This commit is contained in:
parent
a4bc1c9768
commit
072b347c0f
@ -970,8 +970,8 @@ static void gl_render_osd_background(
|
||||
width = msg_width / (float)video_info->width;
|
||||
height = settings->floats.video_font_size / (float)video_info->height;
|
||||
|
||||
x2 = x * 0.10f; /* extend background around text */
|
||||
y2 = y * 0.15f;
|
||||
x2 = 0.005f; /* extend background around text */
|
||||
y2 = 0.005f;
|
||||
|
||||
x -= x2;
|
||||
y -= y2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user