summaryrefslogtreecommitdiff
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
commit06291aaaf180b520d913cd77901697e54efe036f (patch)
tree9383b904fda9d1963f5a5054a4305c104cddc125
parentb15bee6dd5c540fc6a15c7e76ecadcd6efffc42a (diff)
downloadopenttd-06291aaaf180b520d913cd77901697e54efe036f.tar.xz
(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
-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);