X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSettings.cpp;h=a786d7c5a321f353ab391381911149741e6cb5c9;hb=97989f58ab13c64fbe05e629d2b2a024a2c3cfa4;hp=2a1ad12528edcb6cfdd608f90af90dd61dabc62b;hpb=2db542f6927807e964ddb7a5962e2f5cd14e3123;p=lugaru.git diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 2a1ad12..a786d7c 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -3,20 +3,18 @@ Copyright (C) 2003, 2010 - Wolfire Games This file is part of Lugaru. -Lugaru is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +Lugaru is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. -This program is distributed in the hope that it will be useful, +Lugaru is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +along with Lugaru. If not, see . */ #include "Settings.h" @@ -27,11 +25,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 +85,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 +199,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 +313,9 @@ bool LoadSettings() if (detail < 0) detail = 0; if (screenwidth < 0) - screenwidth = 640; + screenwidth = 1024; if (screenheight < 0) - screenheight = 480; + screenheight = 768; return true; }