From 1937a0f9cb2be8383397ee737c7526652ca56248 Mon Sep 17 00:00:00 2001 From: fritsch Date: Sun, 20 Sep 2015 08:53:11 +0200 Subject: [PATCH] Fix position outside of video for text based subs --- xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp b/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp index d4b65d3b78c29..2b4da60b6125f 100644 --- a/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp +++ b/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp @@ -125,11 +125,17 @@ COverlayText::COverlayText(CDVDOverlayText * src) } else { - m_align = ALIGN_VIDEO; + if(m_subalign == SUBTITLE_ALIGN_TOP_INSIDE || + m_subalign == SUBTITLE_ALIGN_TOP_OUTSIDE) + m_align = ALIGN_VIDEO; + else + m_align = ALIGN_SCREEN; + m_pos = POSITION_RELATIVE; m_x = 0.5f; - if(m_subalign == SUBTITLE_ALIGN_TOP_INSIDE - || m_subalign == SUBTITLE_ALIGN_TOP_OUTSIDE) + + if(m_subalign == SUBTITLE_ALIGN_TOP_INSIDE || + m_subalign == SUBTITLE_ALIGN_TOP_OUTSIDE) m_y = 0.0f; else m_y = 1.0f;