Made it so that -windowed option to game will set preferences to windowed

This commit is contained in:
Dave White 2003-09-22 00:54:54 +00:00
parent 4fdd4190e8
commit 680f20bacc

View file

@ -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";