Made it so that -windowed option to game will set preferences to windowed
This commit is contained in:
parent
4fdd4190e8
commit
680f20bacc
1 changed files with 3 additions and 2 deletions
|
@ -182,12 +182,11 @@ int play_game(int argc, char** argv)
|
|||
}
|
||||
|
||||
bool test_mode = false;
|
||||
int video_flags = preferences::fullscreen() ? FULL_SCREEN : 0;
|
||||
|
||||
for(int arg = 1; arg != argc; ++arg) {
|
||||
const std::string val(argv[arg]);
|
||||
if(val == "-windowed") {
|
||||
video_flags = 0;
|
||||
preferences::set_fullscreen(false);
|
||||
} else if(val == "-test") {
|
||||
test_mode = true;
|
||||
} else if(val == "-debug") {
|
||||
|
@ -195,6 +194,8 @@ int play_game(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
int video_flags = preferences::fullscreen() ? FULL_SCREEN : 0;
|
||||
|
||||
const std::pair<int,int>& resolution = preferences::resolution();
|
||||
|
||||
std::cerr << "checking mode possible...\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue