aboutsummaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-05-05 13:47:11 +0200
committerGitHub <noreply@github.com>2017-05-05 13:47:11 +0200
commit21e0a049f81eb0d34adaf45646b11569eeadec52 (patch)
tree735f6b234d0e3baa53b6d0fea1187dd3f06a2119 /src/defaultsettings.cpp
parentd6cf5450a897b00e5ed0d053f14108c94dfb3701 (diff)
downloadminetest-21e0a049f81eb0d34adaf45646b11569eeadec52.tar.gz
minetest-21e0a049f81eb0d34adaf45646b11569eeadec52.tar.bz2
minetest-21e0a049f81eb0d34adaf45646b11569eeadec52.zip
Save minetest screen width/height options when modified (#5683)
* Save minetest screen width/height options when modified * Add autosave_screensize setting (default true) * Fix @SmallJoker comments
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index d45e386cf..434c887e8 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -121,6 +121,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("viewing_range", "100");
settings->setDefault("screenW", "800");
settings->setDefault("screenH", "600");
+ settings->setDefault("autosave_screensize", "true");
settings->setDefault("fullscreen", "false");
settings->setDefault("fullscreen_bpp", "24");
settings->setDefault("vsync", "false");