[vlc-commits] text_renderer: freetype: fix Y padding

Francois Cartegnie git at videolan.org
Tue Jan 21 16:57:56 CET 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 15 17:32:29 2020 +0100| [a786646c11bc361a8fc90926bea9efaac285fb56] | committer: Francois Cartegnie

text_renderer: freetype: fix Y padding

(cherry picked from commit 7f325b46dabdb16c9cee699a5db275fa9df0a542)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a786646c11bc361a8fc90926bea9efaac285fb56
---

 modules/text_renderer/freetype/freetype.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index c330e25226..c5d3ff8036 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -751,8 +751,8 @@ static inline void RenderBackground( subpicture_region_t *p_region,
             continue; /* only spaces */
 
         /* add padding */
-        linebgbox.yMax += (p_paddedbbox->xMax - p_textbbox->xMax);
-        linebgbox.yMin -= (p_textbbox->xMin - p_paddedbbox->xMin);
+        linebgbox.yMax += (p_paddedbbox->yMax - p_textbbox->yMax);
+        linebgbox.yMin -= (p_textbbox->yMin - p_paddedbbox->yMin);
         linebgbox.xMin -= (p_textbbox->xMin - p_paddedbbox->xMin);
         linebgbox.xMax += (p_paddedbbox->xMax - p_textbbox->xMax);
 



More information about the vlc-commits mailing list