Reversing the last merge because I botched it.
This commit is contained in:
@@ -258,7 +258,7 @@ public:
|
||||
* @return Indication of success.
|
||||
*/
|
||||
virtual GHOST_TSuccess beginFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow** window,
|
||||
const bool stereoVisual) = 0;
|
||||
const bool stereoVisual, const GHOST_TUns16 numOfAASamples = 0) = 0;
|
||||
|
||||
/**
|
||||
* Ends full screen mode.
|
||||
|
@@ -133,7 +133,7 @@ bool GHOST_System::validWindow(GHOST_IWindow* window)
|
||||
|
||||
|
||||
GHOST_TSuccess GHOST_System::beginFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow** window,
|
||||
const bool stereoVisual)
|
||||
const bool stereoVisual, const GHOST_TUns16 numOfAASamples)
|
||||
{
|
||||
GHOST_TSuccess success = GHOST_kFailure;
|
||||
GHOST_ASSERT(m_windowManager, "GHOST_System::beginFullScreen(): invalid window manager")
|
||||
@@ -145,7 +145,7 @@ GHOST_TSuccess GHOST_System::beginFullScreen(const GHOST_DisplaySetting& setting
|
||||
success = m_displayManager->setCurrentDisplaySetting(GHOST_DisplayManager::kMainDisplay, setting);
|
||||
if (success == GHOST_kSuccess) {
|
||||
//GHOST_PRINT("GHOST_System::beginFullScreen(): creating full-screen window\n");
|
||||
success = createFullScreenWindow((GHOST_Window**)window, stereoVisual);
|
||||
success = createFullScreenWindow((GHOST_Window**)window, stereoVisual, numOfAASamples);
|
||||
if (success == GHOST_kSuccess) {
|
||||
m_windowManager->beginFullScreen(*window, stereoVisual);
|
||||
}
|
||||
@@ -327,7 +327,7 @@ GHOST_TSuccess GHOST_System::exit()
|
||||
}
|
||||
|
||||
|
||||
GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window** window, const bool stereoVisual)
|
||||
GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window** window, const bool stereoVisual, const GHOST_TUns16 numOfAASamples)
|
||||
{
|
||||
GHOST_TSuccess success;
|
||||
GHOST_ASSERT(m_displayManager, "GHOST_System::createFullScreenWindow(): invalid display manager")
|
||||
@@ -341,7 +341,8 @@ GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window** window, const
|
||||
0, 0, settings.xPixels, settings.yPixels,
|
||||
GHOST_kWindowStateFullScreen,
|
||||
GHOST_kDrawingContextTypeOpenGL,
|
||||
stereoVisual);
|
||||
stereoVisual,
|
||||
numOfAASamples);
|
||||
success = *window == 0 ? GHOST_kFailure : GHOST_kSuccess;
|
||||
}
|
||||
return success;
|
||||
|
@@ -141,7 +141,7 @@ public:
|
||||
* @return Indication of success.
|
||||
*/
|
||||
virtual GHOST_TSuccess beginFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow** window,
|
||||
const bool stereoVisual);
|
||||
const bool stereoVisual, const GHOST_TUns16 numOfAASamples = 0);
|
||||
|
||||
/**
|
||||
* Ends full screen mode.
|
||||
@@ -330,7 +330,7 @@ protected:
|
||||
* @return Indication of success.
|
||||
*/
|
||||
virtual GHOST_TSuccess createFullScreenWindow(GHOST_Window** window,
|
||||
const bool stereoVisual);
|
||||
const bool stereoVisual, const GHOST_TUns16 numOfAASamples = 0);
|
||||
|
||||
/** The display manager (platform dependant). */
|
||||
GHOST_DisplayManager* m_displayManager;
|
||||
|
Reference in New Issue
Block a user