From ff3634a5d91e683a3a68394e0b7ca2fb73c03038 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 10 Feb 2008 18:55:23 +0000 Subject: [PATCH] Add "hack" to display the initial values of the prop_multival entries. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3100 --- src/dosbox.cpp | 4 +++- src/gui/sdlmain.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dosbox.cpp b/src/dosbox.cpp index 76170a09..1c702a44 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dosbox.cpp,v 1.129 2008-02-10 14:31:00 qbix79 Exp $ */ +/* $Id: dosbox.cpp,v 1.130 2008-02-10 18:55:23 qbix79 Exp $ */ #include #include @@ -357,6 +357,7 @@ void DOSBOX_Init(void) { Pbool->Set_help("Do aspect correction, if your output method doesn't support scaling this can slow things down!."); Pmulti = secprop->Add_multi("scaler",Property::Changeable::Always," "); + Pmulti->SetValue("normal2x"); Pmulti->Set_help("Scaler used to enlarge/enhance low resolution modes. If 'forced' is appended,the scaler will be used even if the result might not be desired."); Pstring = Pmulti->GetSection()->Add_string("type",Property::Changeable::Always,"normal2x"); @@ -396,6 +397,7 @@ void DOSBOX_Init(void) { const char* cyclest[] = { "auto","fixed","max",0 }; Pstring = Pmulti->GetSection()->Add_string("type",Property::Changeable::Always,"auto"); + Pmulti->SetValue("auto"); Pstring->Set_values(cyclest); Pstring = Pmulti->GetSection()->Add_string("parameters",Property::Changeable::Always,""); diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 3a1486ae..1a39209e 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdlmain.cpp,v 1.139 2008-02-10 11:14:03 qbix79 Exp $ */ +/* $Id: sdlmain.cpp,v 1.140 2008-02-10 18:55:23 qbix79 Exp $ */ #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -1454,6 +1454,7 @@ int main(int argc, char* argv[]) { Pbool->Set_help("Wait before closing the console if dosbox has an error."); Pmulti = sdl_sec->Add_multi("priority", Property::Changeable::Always, ","); + Pmulti->SetValue("higher,normal"); Pmulti->Set_help("priority -- Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized. (pause is only valid for the second entry)"); const char* actt[] = { "lowest", "lower", "normal", "higher", "highest", "pause", 0};