mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +00:00
(svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu.
This commit is contained in:
@@ -690,7 +690,7 @@ static Window *LocalAllocateWindow(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Window *wt = FindWindowById(WC_MAIN_TOOLBAR, 0);
|
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);
|
w->left = max(w->left, 0);
|
||||||
|
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
|
Reference in New Issue
Block a user