Skip to content
Browse files

Fixed: g_graphicsContext used a reference to itself

  • Loading branch information...
1 parent 6d6af6b commit fbb95f4bbeafc07e51c645b5479a9bb8c7fa529c @garbear garbear committed Jul 18, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 xbmc/guilib/GraphicContext.cpp
View
10 xbmc/guilib/GraphicContext.cpp
@@ -280,14 +280,14 @@ void CGraphicContext::SetFullScreenVideo(bool bOnOff)
if(m_bFullScreenRoot)
{
if(m_bFullScreenVideo)
- g_graphicsContext.SetVideoResolution(g_renderManager.GetResolution());
+ SetVideoResolution(g_renderManager.GetResolution());
else if(g_guiSettings.m_LookAndFeelResolution > RES_DESKTOP)
- g_graphicsContext.SetVideoResolution(g_guiSettings.m_LookAndFeelResolution);
+ SetVideoResolution(g_guiSettings.m_LookAndFeelResolution);
else
- g_graphicsContext.SetVideoResolution(RES_DESKTOP);
+ SetVideoResolution(RES_DESKTOP);
}
else
- g_graphicsContext.SetVideoResolution(RES_WINDOW);
+ SetVideoResolution(RES_WINDOW);
#endif
Unlock();
@@ -783,7 +783,7 @@ bool CGraphicContext::ToggleFullScreenRoot ()
uiRes = newRes;
#if defined(HAS_VIDEO_PLAYBACK)
- if (g_graphicsContext.IsFullScreenVideo() || g_graphicsContext.IsCalibrating())
+ if (IsFullScreenVideo() || IsCalibrating())
{
/* we need to trick renderer that we are fullscreen already so it gives us a valid value */
m_bFullScreenRoot = true;

0 comments on commit fbb95f4

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