X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSettings.cpp;h=3283b441d639541797c9e5b82ecfc30ef0076957;hb=31801560f92e99939f40ee49d9c279324db044bb;hp=2a1ad12528edcb6cfdd608f90af90dd61dabc62b;hpb=2db542f6927807e964ddb7a5962e2f5cd14e3123;p=lugaru.git diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 2a1ad12..3283b44 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -27,11 +27,12 @@ using namespace Game; void DefaultSettings() { - detail = 1; - ismotionblur = 0; + detail = 2; + ismotionblur = 1; usermousesensitivity = 1; - newscreenwidth = kContextWidth = 640; - newscreenheight = kContextHeight = 480; + newscreenwidth = kContextWidth = 1024; + newscreenheight = kContextHeight = 768; + fullscreen = 0; kBitsPerPixel = 32; floatjump = 0; autoslomo = 1; @@ -86,6 +87,8 @@ void SaveSettings() opstream << newscreenwidth; opstream << "\nScreenheight:\n"; opstream << newscreenheight; + opstream << "\nFullscreen:\n"; + opstream << fullscreen; opstream << "\nMouse sensitivity:\n"; opstream << usermousesensitivity; opstream << "\nBlur(0,1):\n"; @@ -198,6 +201,8 @@ bool LoadSettings() ipstream >> kContextWidth; } else if ( !strncmp(setting, "Screenheight", 12) ) { ipstream >> kContextHeight; + } else if ( !strncmp(setting, "Fullscreen", 10) ) { + ipstream >> fullscreen; } else if ( !strncmp(setting, "Mouse sensitivity", 17) ) { ipstream >> usermousesensitivity; } else if ( !strncmp(setting, "Blur", 4) ) { @@ -310,9 +315,9 @@ bool LoadSettings() if (detail < 0) detail = 0; if (screenwidth < 0) - screenwidth = 640; + screenwidth = 1024; if (screenheight < 0) - screenheight = 480; + screenheight = 768; return true; }