Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Scale teletext dialog using g_graphicsContext.

  • Loading branch information...
commit 34a25e54658e0b303f8b27cb94bf38d01ff4d8df 1 parent 1e56203
@mikrohard authored
Showing with 10 additions and 5 deletions.
  1. +10 −5 xbmc/video/dialogs/GUIDialogTeletext.cpp
View
15 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())
{
Please sign in to comment.
Something went wrong with that request. Please try again.