aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2015-09-20 13:12:22 +0200
committerMartijn Kaijser <martijn@xbmc.org>2015-09-20 13:12:22 +0200
commit58f881cd950725ba2ed28d6a5cbd261b3efb4cf6 (patch)
tree01f2418807f8f80d89407d5957c24b4e95992043
parent5f657c52689b9efb8c8a1740cc2d6087a887fff5 (diff)
parent1937a0f9cb2be8383397ee737c7526652ca56248 (diff)
Merge pull request #8098 from fritsch/isgtbs
Fix position outside of video for text based subs
-rw-r--r--xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp12
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;