Skip to content

Commit

Permalink
another resolution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Oct 5, 2015
1 parent edc93c6 commit e81e44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/VideoRenderers/OverlayRenderer.cpp
Expand Up @@ -250,7 +250,7 @@ void CRenderer::Render(COverlay* o, float adjust_height)
{
if(align == COverlay::ALIGN_SUBTITLE)
{
RESOLUTION_INFO res = g_graphicsContext.GetResInfo(m_pRenderManager->GetResolution());
RESOLUTION_INFO res = g_graphicsContext.GetResInfo(g_graphicsContext.GetVideoResolution());
state.x += rv.x1 + rv.Width() * 0.5f;
state.y += rv.y1 + (res.iSubtitles - res.Overscan.top);
}
Expand Down Expand Up @@ -330,7 +330,7 @@ COverlay* CRenderer::Convert(CDVDOverlaySSA* o, double pts)
else if (subalign == SUBTITLE_ALIGN_MANUAL && g_advancedSettings.m_videoAssFixedWorks)
{
RESOLUTION_INFO res;
res = g_graphicsContext.GetResInfo(m_pRenderManager->GetResolution());
res = g_graphicsContext.GetResInfo(g_graphicsContext.GetVideoResolution());
position = 100.0 - (res.iSubtitles - res.Overscan.top) * 100 / res.iHeight;
}
else
Expand Down

0 comments on commit e81e44d

Please sign in to comment.