Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /guilib/GraphicContext.cpp [7475bc] .. [6603ef] Maximize Restore

Repo status: analyzing...

  Switch to unified view

a/guilib/GraphicContext.cpp b/guilib/GraphicContext.cpp
...
...
30
#include "WindowingFactory.h"
30
#include "WindowingFactory.h"
31
#include "TextureManager.h"
31
#include "TextureManager.h"
32
#include "MouseStat.h"
32
#include "MouseStat.h"
33
#include "GUIWindowManager.h"
33
#include "GUIWindowManager.h"
34
#include "utils/JobManager.h"
34
#include "utils/JobManager.h"
35
#include "VideoReferenceClock.h"
35
36
36
using namespace std;
37
using namespace std;
37
38
38
extern bool g_fullScreen;
39
extern bool g_fullScreen;
39
40
...
...
337
  m_iScreenWidth  = g_settings.m_ResInfo[res].iWidth;
338
  m_iScreenWidth  = g_settings.m_ResInfo[res].iWidth;
338
  m_iScreenHeight = g_settings.m_ResInfo[res].iHeight;
339
  m_iScreenHeight = g_settings.m_ResInfo[res].iHeight;
339
  m_iScreenId     = g_settings.m_ResInfo[res].iScreen;
340
  m_iScreenId     = g_settings.m_ResInfo[res].iScreen;
340
  m_Resolution    = res;
341
  m_Resolution    = res;
341
342
343
  //tell the videoreferenceclock that we're about to change the refreshrate
344
  g_VideoReferenceClock.RefreshChanged();
345
342
  if (g_advancedSettings.m_fullScreen)
346
  if (g_advancedSettings.m_fullScreen)
343
  {
347
  {
344
#if defined (__APPLE__) || defined (_WIN32)
348
#if defined (__APPLE__) || defined (_WIN32)
345
    bool blankOtherDisplays = g_guiSettings.GetBool("videoscreen.blankdisplays");
349
    bool blankOtherDisplays = g_guiSettings.GetBool("videoscreen.blankdisplays");
346
    g_Windowing.SetFullScreen(true,  g_settings.m_ResInfo[res], blankOtherDisplays);
350
    g_Windowing.SetFullScreen(true,  g_settings.m_ResInfo[res], blankOtherDisplays);