summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-11-07 15:49:36 +0000
committeralberth <alberth@openttd.org>2009-11-07 15:49:36 +0000
commitb500170ac2e286b1fe5a6c8529f1f963cd05ecdf (patch)
tree59225f7c5cf84d78fbf902087a9d71f4dc8ca7a8 /src/window.cpp
parent3ae1b98d3a11764fd7b63cddf3d4bdbc542b5341 (diff)
downloadopenttd-b500170ac2e286b1fe5a6c8529f1f963cd05ecdf.tar.xz
(svn r17995) -Codechange: PreventHiding() is used in one file, make it static.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index c2c725502..0bffa019e 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1621,7 +1621,7 @@ enum PreventHideDirection {
* @param px Previous horizontal base coordinate.
* @param dir If no room horizontally, move the rectangle to the indicated position.
*/
-void PreventHiding(int *nx, int *ny, const Rect &rect, const Window *v, int px, PreventHideDirection dir)
+static void PreventHiding(int *nx, int *ny, const Rect &rect, const Window *v, int px, PreventHideDirection dir)
{
if (v == NULL) return;