summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-08-13 10:22:34 +0000
committerDarkvater <darkvater@openttd.org>2006-08-13 10:22:34 +0000
commite885129ab8e8bb0336a6791c8d1e062fffb3120a (patch)
tree44075680e2b4f3d696addfa2d04ea49301f8d9fc /settings.c
parent0daa7cdaed81f520e66690136352d890e7d7a623 (diff)
downloadopenttd-e885129ab8e8bb0336a6791c8d1e062fffb3120a.tar.xz
(svn r5874) -Feature [FS#234]: Remember the maximized state and restore on start. This also fixes a bug where a different resolution is chosen for a maximized window, but it retains the maximized flag. Only win32.
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 5e7faae11..848d8d699 100644
--- a/settings.c
+++ b/settings.c
@@ -1157,7 +1157,7 @@ static const SettingDesc _music_settings[] = {
/* win32_v.c only settings */
#ifdef WIN32
-extern bool _force_full_redraw, _double_size;
+extern bool _force_full_redraw, _double_size, _window_maximize;
extern uint _display_hz, _fullscreen_bpp;
static const SettingDescGlobVarList _win32_settings[] = {
@@ -1165,6 +1165,7 @@ static const SettingDescGlobVarList _win32_settings[] = {
SDTG_BOOL("force_full_redraw", S, 0, _force_full_redraw,false, STR_NULL, NULL),
SDTG_VAR("fullscreen_bpp", SLE_UINT, S, 0, _fullscreen_bpp, 8, 8, 32, STR_NULL, NULL),
SDTG_BOOL("double_size", S, 0, _double_size, false, STR_NULL, NULL),
+ SDTG_BOOL("window_maximize", S, 0, _window_maximize, false, STR_NULL, NULL),
SDTG_END()
};
#endif /* WIN32 */