Skip to content
Snippets Groups Projects
Commit 1018c9c5 authored by Oliver Bock's avatar Oliver Bock
Browse files

Using command line parameter for optional fullscreen startup

* Tighter BOINC graphics app compliance
* Idependent of debug/release mode
parent e719f97a
No related branches found
No related tags found
No related merge requests found
...@@ -80,10 +80,14 @@ int main(int argc, char **argv) ...@@ -80,10 +80,14 @@ int main(int argc, char **argv)
graphics->initialize(window.windowWidth(), window.windowHeight(), fontResource); graphics->initialize(window.windowWidth(), window.windowHeight(), fontResource);
graphics->refreshBOINCInformation(); graphics->refreshBOINCInformation();
#ifdef NDEBUG // check optional command line parameter
// switch to fullscreen when in release mode (on windoze: after init!) if(argc == 2) {
string param(argv[1]);
if(param == "--fullscreen") {
// switch to fullscreen (on windoze: after init!)
window.toggleFullscreen(); window.toggleFullscreen();
#endif }
}
// enter main event loop // enter main event loop
window.eventLoop(); window.eventLoop();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment