Skip to content
Snippets Groups Projects
Commit 41daf723 authored by Miezhiko's avatar Miezhiko
Browse files

No maximize!

Reverting this change: https://git.alchemyviewer.org/alchemy/alchemy-next/-/commit/dfb243cd953423e69afb0e9ea48efc9047226763


It's not like "fully immersing myself in the experience" =_= but more like annoying when app goes fullscreen every run before login

Signed-off-by: default avatarMiezhiko <Miezhiko@gmail.com>
parent f8580ca3
No related branches found
No related tags found
No related merge requests found
...@@ -2945,19 +2945,6 @@ void LLAppViewer::initStrings() ...@@ -2945,19 +2945,6 @@ void LLAppViewer::initStrings()
} }
} }
//
// This function decides whether the client machine meets the minimum requirements to
// run in a maximized window, per the consensus of davep, boa and nyx on 3/30/2011.
//
bool LLAppViewer::meetsRequirementsForMaximizedStart()
{
bool maximizedOk = (LLFeatureManager::getInstance()->getGPUClass() >= GPU_CLASS_2);
maximizedOk &= (gSysMemory.getPhysicalMemoryKB() >= U32Gigabytes(1));
return maximizedOk;
}
bool LLAppViewer::initWindow() bool LLAppViewer::initWindow()
{ {
LL_INFOS("AppInit") << "Initializing window..." << LL_ENDL; LL_INFOS("AppInit") << "Initializing window..." << LL_ENDL;
...@@ -3046,21 +3033,6 @@ bool LLAppViewer::initWindow() ...@@ -3046,21 +3033,6 @@ bool LLAppViewer::initWindow()
LLAppViewer::instance()->forceErrorLLError(); LLAppViewer::instance()->forceErrorLLError();
} }
//
// Determine if the window should start maximized on initial run based
// on graphics capability
//
if (gSavedSettings.getBOOL("FirstLoginThisInstall") && meetsRequirementsForMaximizedStart())
{
LL_INFOS("AppInit") << "This client met the requirements for a maximized initial screen." << LL_ENDL;
gSavedSettings.setBOOL("WindowMaximized", TRUE);
}
if (gSavedSettings.getBOOL("WindowMaximized"))
{
gViewerWindow->getWindow()->maximize();
}
LLUI::sWindow = gViewerWindow->getWindow(); LLUI::sWindow = gViewerWindow->getWindow();
// Show watch cursor // Show watch cursor
......
...@@ -228,8 +228,6 @@ class LLAppViewer : public LLApp ...@@ -228,8 +228,6 @@ class LLAppViewer : public LLApp
virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this.
virtual bool meetsRequirementsForMaximizedStart(); // Used on first login to decide to launch maximized
private: private:
bool doFrame(); bool doFrame();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment