diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2015-06-14 10:07:59 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2015-06-14 10:09:36 +0200 |
commit | 74ad4c1b21da1245edd05846a4bae6132dbb4485 (patch) | |
tree | dbe764d8e1d1905a93ac966d0c3f8f154ed07cf7 | |
parent | 54137be7060a1f791582244ae2ae3d5799fc1271 (diff) |
renderer: fix subtitle (text) positions for alignment outside video, consider height of text
-rw-r--r-- | xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp b/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp index da864a3419..c77ce0316b 100644 --- a/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp +++ b/xbmc/cores/VideoRenderers/OverlayRendererGUI.cpp @@ -170,7 +170,8 @@ void COverlayText::Render(OVERLAY::SRenderState &state) mat.m[0][3] = rd.x1; mat.m[1][3] = rd.y1; - float x = state.x, y = state.y; + float x = state.x; + float y = state.y; mat.InverseTransformPosition(x, y); g_graphicsContext.SetTransform(mat, 1.0f, 1.0f); @@ -178,7 +179,7 @@ void COverlayText::Render(OVERLAY::SRenderState &state) float width_max = (float) res.Overscan.right - res.Overscan.left; if (m_subalign == SUBTITLE_ALIGN_MANUAL - || m_subalign == SUBTITLE_ALIGN_TOP_OUTSIDE + || m_subalign == SUBTITLE_ALIGN_BOTTOM_OUTSIDE || m_subalign == SUBTITLE_ALIGN_BOTTOM_INSIDE) y -= m_height; |