summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-16 19:38:41 +0000
committersmatz <smatz@openttd.org>2008-06-16 19:38:41 +0000
commit2299181c4be2a6d53eec62664c7a51e429c9f8a5 (patch)
tree9779d4c999b30e1a9c2dbf181c1456b5bb688cfc /src/settings.cpp
parent0c342f3292af7dd5f563e5bd053ff01bdcd32582 (diff)
downloadopenttd-2299181c4be2a6d53eec62664c7a51e429c9f8a5.tar.xz
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index a0ecdcfdc..2e34cdbbe 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1510,7 +1510,7 @@ static const SettingDescGlobVarList _misc_settings[] = {
SDTG_STR("sounddriver", SLE_STRB,C|S,0, _ini_sounddriver, NULL, STR_NULL, NULL),
SDTG_STR("blitter", SLE_STRB,C|S,0, _ini_blitter, NULL, STR_NULL, NULL),
SDTG_STR("language", SLE_STRB, S, 0, _dynlang.curr_file, NULL, STR_NULL, NULL),
- SDTG_LIST("resolution", SLE_UINT16, S, 0, _cur_resolution, "640,480", STR_NULL, NULL),
+ SDTG_CONDLIST("resolution", SLE_INT, 2, S, 0, _cur_resolution, "640,480", STR_NULL, NULL, 0, SL_MAX_VERSION), // workaround for implicit lengthof() in SDTG_LIST
SDTG_STR("screenshot_format",SLE_STRB, S, 0, _screenshot_format_name,NULL, STR_NULL, NULL),
SDTG_STR("savegame_format", SLE_STRB, S, 0, _savegame_format, NULL, STR_NULL, NULL),
SDTG_BOOL("rightclick_emulate", S, 0, _rightclick_emulate, false, STR_NULL, NULL),