summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-11-24 12:20:14 +0000
committerpeter1138 <peter1138@openttd.org>2011-11-24 12:20:14 +0000
commit4e97261315211c65459b91685537f82e5c454604 (patch)
tree155bbd8a8a459ba9b0a74c4ca230a2ab99cb99fd /src/settings.cpp
parent00db8b800866b47f0ee6a7f4ad2c227eab97bd53 (diff)
downloadopenttd-4e97261315211c65459b91685537f82e5c454604.tar.xz
(svn r23314) -Add: Add settings to restrict viewport zoom levels.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 0cffb6360..28192a4d7 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -894,6 +894,13 @@ static bool InvalidateVehTimetableWindow(int32 p1)
return true;
}
+static bool ZoomMinMaxChanged(int32 p1)
+{
+ extern void ConstrainAllViewportsZoom();
+ ConstrainAllViewportsZoom();
+ return true;
+}
+
/**
* Update any possible saveload window and delete any newgrf dialogue as
* its widget parts might change. Reinit all windows as it allows access to the