diff options
author | fritsch <peter.fruehberger@gmail.com> | 2015-09-20 08:53:11 +0200 |
---|---|---|
committer | fritsch <peter.fruehberger@gmail.com> | 2015-09-20 11:24:59 +0200 |
commit | 1937a0f9cb2be8383397ee737c7526652ca56248 (patch) | |
tree | 01f2418807f8f80d89407d5957c24b4e95992043 | |
parent | 5f657c52689b9efb8c8a1740cc2d6087a887fff5 (diff) |
Fix position outside of video for text based subs
-rw-r--r-- | xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp b/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp index d4b65d3b78..2b4da60b61 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; |