Skip to content

Commit

Permalink
Merge pull request xbmc#8097 from fritsch/subdisplay
Browse files Browse the repository at this point in the history
Fix position outside of video for text based subs
  • Loading branch information
MartijnKaijser committed Sep 20, 2015
2 parents 9f3e337 + 3174a4f commit a1431e1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1431e1

Please sign in to comment.