aboutsummaryrefslogtreecommitdiff
path: root/guilib/GraphicContext.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-10-19 03:14:44 +0000
committerjmarshallnz <jmarshallnz@svn>2009-10-19 03:14:44 +0000
commit7b104fb2b42fe4e0cc492b852727d317fd697f9e (patch)
tree8429187c7bc840b5409e63bcaeb7be9da24db69c /guilib/GraphicContext.cpp
parent60a2b041726d0fc1414ad5b4de5b65494fb4d6e1 (diff)
added: GUI_MSG_RENDERER_LOST/RESET events, to specify when our renderer is lost and regained, so that shared resources may be free'd.
changed: send GUI_MSG_WINDOW_RESIZE rather than calling GUIFontManager::ReloadTTFFonts directly. removed: No need for the special-case handling of visualisations on renderer loss anymore. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23847 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GraphicContext.cpp')
-rw-r--r--guilib/GraphicContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GraphicContext.cpp b/guilib/GraphicContext.cpp
index 033b93e7f5..d2c8195c61 100644
--- a/guilib/GraphicContext.cpp
+++ b/guilib/GraphicContext.cpp
@@ -21,7 +21,6 @@
#include "system.h"
#include "GraphicContext.h"
-#include "GUIFontManager.h"
#include "utils/SingleLock.h"
#include "Application.h"
#include "GUISettings.h"
@@ -32,6 +31,7 @@
#include "SkinInfo.h"
#include "TextureManager.h"
#include "MouseStat.h"
+#include "GUIWindowManager.h"
using namespace std;
@@ -350,10 +350,10 @@ void CGraphicContext::SetVideoResolution(RESOLUTION res, bool forceUpdate)
else
g_Windowing.ResizeWindow(m_iScreenWidth, m_iScreenHeight, -1, -1);
- // set the mouse resolution
+ // update anyone that relies on sizing information
g_renderManager.Recover();
g_Mouse.SetResolution(m_iScreenWidth, m_iScreenHeight, 1, 1);
- g_fontManager.ReloadTTFFonts();
+ g_windowManager.SendMessage(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_WINDOW_RESIZE);
SetFullScreenViewWindow(res);