diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-01-09 01:58:59 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-01-09 01:58:59 +0000 |
commit | 2e370e36232d786c71a86802ef64c301b977b940 (patch) | |
tree | e319c2f6c364eaa1b9584f3453abf75bbd18a0d0 /guilib/GUIWindow.cpp | |
parent | 119888ed65f922e0c0af29765503295f02a2a66c (diff) |
cleanup: removed unnecessary arguments from SetScalingResolution and SetRenderingResolution
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26565 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIWindow.cpp')
-rw-r--r-- | guilib/GUIWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guilib/GUIWindow.cpp b/guilib/GUIWindow.cpp index 7c86de713a..9c43d48fbc 100644 --- a/guilib/GUIWindow.cpp +++ b/guilib/GUIWindow.cpp @@ -134,7 +134,7 @@ bool CGUIWindow::Load(TiXmlDocument &xmlDoc) // set the scaling resolution so that any control creation or initialisation can // be done with respect to the correct aspect ratio - g_graphicsContext.SetScalingResolution(m_coordsRes, 0, 0, m_needsScaling); + g_graphicsContext.SetScalingResolution(m_coordsRes, m_needsScaling); // Resolve any includes that may be present g_SkinInfo.ResolveIncludes(pRootElement); @@ -312,7 +312,7 @@ void CGUIWindow::Render() // to occur. if (!m_bAllocated) return; - g_graphicsContext.SetRenderingResolution(m_coordsRes, 0, 0, m_needsScaling); + g_graphicsContext.SetRenderingResolution(m_coordsRes, m_needsScaling); unsigned int currentTime = CTimeUtils::GetFrameTime(); // render our window animation - returns false if it needs to stop rendering @@ -380,7 +380,7 @@ CPoint CGUIWindow::GetOrigin() // OnMouseAction - called by OnAction() bool CGUIWindow::OnMouseAction() { - g_graphicsContext.SetScalingResolution(m_coordsRes, 0, 0, m_needsScaling); + g_graphicsContext.SetScalingResolution(m_coordsRes, m_needsScaling); CPoint mousePoint(g_Mouse.GetLocation()); g_graphicsContext.InvertFinalCoords(mousePoint.x, mousePoint.y); @@ -858,7 +858,7 @@ void CGUIWindow::SetDefaults() CRect CGUIWindow::GetScaledBounds() const { CSingleLock lock(g_graphicsContext); - g_graphicsContext.SetScalingResolution(m_coordsRes, 0, 0, m_needsScaling); + g_graphicsContext.SetScalingResolution(m_coordsRes, m_needsScaling); CRect rect(m_posX, m_posY, m_posX + m_width, m_posY + m_height); float z = 0; g_graphicsContext.ScaleFinalCoords(rect.x1, rect.y1, z); |