summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-08 23:46:35 +0000
committerterkhen <terkhen@openttd.org>2010-02-08 23:46:35 +0000
commit52312ea17f348ffc9409465845ef50db05800435 (patch)
treeb3ecbee005061d990a643e54fade7d108ae3293d /src/settings.cpp
parent3c627747d330a699a099f4330796654c549886a7 (diff)
downloadopenttd-52312ea17f348ffc9409465845ef50db05800435.tar.xz
(svn r19064) -Feature: Allow to select different land colours for the smallmap (reworked by Alberth).
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 9af46b4be..767bfbb1a 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -63,6 +63,7 @@
#include "ship.h"
#include "company_base.h"
#include "engine_base.h"
+#include "smallmap_gui.h"
#include "void_map.h"
#include "station_base.h"
@@ -658,6 +659,18 @@ static bool RedrawScreen(int32 p1)
return true;
}
+/**
+ * Redraw the smallmap after a colour scheme change.
+ * @param p1 Callback parameter.
+ * @return Always true.
+ */
+static bool RedrawSmallmap(int32 p1)
+{
+ BuildLandLegend();
+ SetWindowClassesDirty(WC_SMALLMAP);
+ return true;
+}
+
static bool InvalidateDetailsWindow(int32 p1)
{
SetWindowClassesDirty(WC_VEHICLE_DETAILS);