CREATE_PROJECT: Switch SDL backend to SDL2 by default

This adapts create_project with the changes in de04a68c06
This commit is contained in:
Filippos Karapetis 2016-08-22 13:09:49 +03:00
parent f629a32819
commit c69eb82527
2 changed files with 4 additions and 4 deletions

View file

@ -284,8 +284,8 @@ int main(int argc, char *argv[]) {
setup.devTools = true;
} else if (!std::strcmp(argv[i], "--tests")) {
setup.tests = true;
} else if (!std::strcmp(argv[i], "--sdl2")) {
setup.useSDL2 = true;
} else if (!std::strcmp(argv[i], "--sdl1")) {
setup.useSDL2 = false;
} else {
std::cerr << "ERROR: Unknown parameter \"" << argv[i] << "\"\n";
return -1;
@ -700,7 +700,7 @@ void displayHelp(const char *exe) {
" --disable-<name> disable inclusion of the feature \"name\"\n"
"\n"
"SDL settings:\n"
" --sdl2 link to SDL 2.0, instead of SDL 1.2\n"
" --sdl1 link to SDL 1.2, instead of SDL 2.0\n"
"\n"
" There are the following features available:\n"
"\n";

View file

@ -239,7 +239,7 @@ struct BuildSetup {
tests = false;
runBuildEvents = false;
createInstaller = false;
useSDL2 = false;
useSDL2 = true;
}
};