diff --git a/xbmc/video/dialogs/GUIDialogTeletext.cpp b/xbmc/video/dialogs/GUIDialogTeletext.cpp index 47f2343a85de4..5fd99c3f352e4 100644 --- a/xbmc/video/dialogs/GUIDialogTeletext.cpp +++ b/xbmc/video/dialogs/GUIDialogTeletext.cpp @@ -117,11 +117,16 @@ void CGUIDialogTeletext::OnInitWindow() m_bClose = false; m_windowLoaded = true; - RESOLUTION res = g_graphicsContext.GetVideoResolution(); - m_vertCoords.SetRect((float)g_settings.m_ResInfo[res].Overscan.left, - (float)g_settings.m_ResInfo[res].Overscan.top, - (float)g_settings.m_ResInfo[res].Overscan.right, - (float)g_settings.m_ResInfo[res].Overscan.bottom); + g_graphicsContext.SetScalingResolution(m_coordsRes, m_needsScaling); + float left = g_graphicsContext.ScaleFinalXCoord(0, 0); + float right = g_graphicsContext.ScaleFinalXCoord(m_coordsRes.iWidth, 0); + float top = g_graphicsContext.ScaleFinalYCoord(0, 0); + float bottom = g_graphicsContext.ScaleFinalYCoord(0, m_coordsRes.iHeight); + + m_vertCoords.SetRect(left, + top, + right, + bottom); if (!m_TextDecoder.InitDecoder()) {