Skip to content

Commit

Permalink
Scale teletext dialog using g_graphicsContext.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrohard committed Mar 29, 2012
1 parent 1e56203 commit 34a25e5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions xbmc/video/dialogs/GUIDialogTeletext.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit 34a25e5

Please sign in to comment.