Update status bar sizing when changing date/time display settings

pull/273/head
Jonathan G Rennison 3 years ago
parent 8450f0a248
commit 7aa63e9726

@ -72,6 +72,7 @@
#include "scope_info.h"
#include "viewport_func.h"
#include "gui.h"
#include "statusbar_gui.h"
#include "void_map.h"
#include "station_base.h"
@ -1306,6 +1307,7 @@ static bool UpdateTimeSettings(int32 p1)
{
SetupTimeSettings();
InvalidateVehTimetableWindow(p1);
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_REINIT);
MarkWholeScreenDirty();
return true;
}

@ -210,6 +210,9 @@ struct StatusBarWindow : Window {
this->ticker_scroll = TICKER_STOP; // reset ticker ...
this->reminder_timeout.SetInterval(REMINDER_STOP); // ... and reminder
break;
case SBI_REINIT:
this->ReInit();
break;
}
}

@ -17,6 +17,7 @@ enum StatusBarInvalidate {
SBI_SHOW_TICKER, ///< start scrolling news
SBI_SHOW_REMINDER, ///< show a reminder (dot on the right side of the statusbar)
SBI_NEWS_DELETED, ///< abort current news display (active news were deleted)
SBI_REINIT, ///< reinit status bar
SBI_END
};

@ -4794,7 +4794,7 @@ max = 3
str = STR_CONFIG_SETTING_DATE_WITH_TIME
strval = STR_CONFIG_SETTING_DATE_WITH_TIME_NONE
strhelp = STR_CONFIG_SETTING_DATE_WITH_TIME_HELPTEXT
proc = RedrawScreen
proc = UpdateTimeSettings
[SDTC_BOOL]
var = gui.timetable_start_text_entry

Loading…
Cancel
Save