no need to manually set the display resolution anymore
authormontellese <montellese@xbmc.org>
Thu, 9 May 2013 16:57:09 +0000 (18:57 +0200)
committermontellese <montellese@xbmc.org>
Wed, 15 May 2013 21:39:46 +0000 (23:39 +0200)
xbmc/Application.cpp
xbmc/guilib/GraphicContext.cpp
xbmc/interfaces/Builtins.cpp

index 06f1100..a079ddf 100644 (file)
@@ -505,10 +505,7 @@ bool CApplication::OnEvent(XBMC_Event& newEvent)
         // when fullscreen, remain fullscreen and resize to the dimensions of the new screen
         RESOLUTION newRes = (RESOLUTION) g_Windowing.DesktopResolution(g_Windowing.GetCurrentScreen());
         if (newRes != g_graphicsContext.GetVideoResolution())
-        {
           CDisplaySettings::Get().SetCurrentResolution(newRes, true);
-          g_graphicsContext.SetVideoResolution(newRes);
-        }
       }
       else
 #endif
index 71367ed..32e782e 100644 (file)
@@ -857,7 +857,6 @@ bool CGraphicContext::ToggleFullScreenRoot ()
 #endif
   }
 
-  SetVideoResolution(newRes);
   CDisplaySettings::Get().SetCurrentResolution(uiRes, true);
 
   return m_bFullScreenRoot;
index 8b73ecd..28fdc7a 100644 (file)
@@ -473,7 +473,6 @@ int CBuiltins::Execute(const CStdString& execString)
     if (g_graphicsContext.IsValidResolution(res))
     {
       CDisplaySettings::Get().SetCurrentResolution(res, true);
-      g_graphicsContext.SetVideoResolution(res);
       g_application.ReloadSkin();
     }
   }