summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2014-10-12 10:48:18 +0000
committerpeter1138 <peter1138@openttd.org>2014-10-12 10:48:18 +0000
commitcb62e83e0e48c30171146f86ee78caf0d1246cce (patch)
treeb8235249e12a867dda5ade0f3c08c7368b29ef81
parentb8690523d2a56a40407ed30d0f9937d964fb9265 (diff)
downloadopenttd-cb62e83e0e48c30171146f86ee78caf0d1246cce.tar.xz
(svn r26996) -Codechange: Don't clamp airport construction window size -- this causes very poor performance if the game window is not large enough.
-rw-r--r--src/airport_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index b4c056d50..29a0d83ad 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -413,7 +413,7 @@ public:
* Never make the window smaller to avoid oscillating if the size change affects the acceptance.
* (This is the case, if making the window bigger moves the mouse into the window.) */
if (top > bottom) {
- ResizeWindow(this, 0, top - bottom);
+ ResizeWindow(this, 0, top - bottom, false);
}
}