summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-28 21:00:31 +0000
committerrubidium <rubidium@openttd.org>2007-07-28 21:00:31 +0000
commitaeb992ce90797a1744d40fea11980eeee30daa9e (patch)
tree9383b904fda9d1963f5a5054a4305c104cddc125 /src/window.cpp
parentb6c3a127af1eb4248ea40c32d4df7e5bd6ce57bb (diff)
downloadopenttd-aeb992ce90797a1744d40fea11980eeee30daa9e.tar.xz
(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
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 9d400dd83..db4052de3 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -690,7 +690,7 @@ static Window *LocalAllocateWindow(
}
const Window *wt = FindWindowById(WC_MAIN_TOOLBAR, 0);
- w->top = max(w->top, (wt == NULL || w == wt) ? 0 : wt->height);
+ w->top = max(w->top, (wt == NULL || w == wt || y == 0) ? 0 : wt->height);
w->left = max(w->left, 0);
SetWindowDirty(w);