[vlc-commits] text_renderer: freetype: fix Y padding
Francois Cartegnie
git at videolan.org
Wed Jan 15 20:28:45 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 15 17:32:29 2020 +0100| [7f325b46dabdb16c9cee699a5db275fa9df0a542] | committer: Francois Cartegnie
text_renderer: freetype: fix Y padding
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f325b46dabdb16c9cee699a5db275fa9df0a542
---
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 829bc23862..18fca8714a 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -744,8 +744,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