From 072b347c0f1e0b3e504895c0c59249db301621c3 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Tue, 10 Oct 2017 15:16:58 -0400 Subject: [PATCH] fix OSD background alignment with non-default X/Y positions --- gfx/drivers/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index f09678d2df..b64d39fb9e 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -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;