Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Scale teletext dialog using g_graphicsContext.

  • Loading branch information...
commit 34a25e54658e0b303f8b27cb94bf38d01ff4d8df 1 parent 1e56203
Jernej Fijačko authored

Showing 1 changed file with 10 additions and 5 deletions. Show diff stats Hide diff stats

  1. +10 5 xbmc/video/dialogs/GUIDialogTeletext.cpp
15 xbmc/video/dialogs/GUIDialogTeletext.cpp
@@ -117,11 +117,16 @@ void CGUIDialogTeletext::OnInitWindow()
117 117 m_bClose = false;
118 118 m_windowLoaded = true;
119 119
120   - RESOLUTION res = g_graphicsContext.GetVideoResolution();
121   - m_vertCoords.SetRect((float)g_settings.m_ResInfo[res].Overscan.left,
122   - (float)g_settings.m_ResInfo[res].Overscan.top,
123   - (float)g_settings.m_ResInfo[res].Overscan.right,
124   - (float)g_settings.m_ResInfo[res].Overscan.bottom);
  120 + g_graphicsContext.SetScalingResolution(m_coordsRes, m_needsScaling);
  121 + float left = g_graphicsContext.ScaleFinalXCoord(0, 0);
  122 + float right = g_graphicsContext.ScaleFinalXCoord(m_coordsRes.iWidth, 0);
  123 + float top = g_graphicsContext.ScaleFinalYCoord(0, 0);
  124 + float bottom = g_graphicsContext.ScaleFinalYCoord(0, m_coordsRes.iHeight);
  125 +
  126 + m_vertCoords.SetRect(left,
  127 + top,
  128 + right,
  129 + bottom);
125 130
126 131 if (!m_TextDecoder.InitDecoder())
127 132 {

0 comments on commit 34a25e5

Please sign in to comment.
Something went wrong with that request. Please try again.