(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
authorrubidium
Sat, 28 Jul 2007 21:00:31 +0000
changeset 7850 e47de0a0c7dc
parent 7849 eafce07e8f96
child 7851 a8b46108eee8
(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
src/window.cpp
--- a/src/window.cpp	Sat Jul 28 20:59:30 2007 +0000
+++ b/src/window.cpp	Sat Jul 28 21:00:31 2007 +0000
@@ -690,7 +690,7 @@
 	}
 
 	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);