(svn r7207) -Codechange: Pass the (unchanged) windowpointer to the console window and do it only once.

This commit is contained in:
Darkvater
2006-11-18 17:07:05 +00:00
parent 53f954edd3
commit e614782066
3 changed files with 11 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ static void IConsoleWndProc(Window *w, WindowEvent *e)
break;
case WKC_CTRL | WKC_RETURN:
_iconsole_mode = (_iconsole_mode == ICONSOLE_FULL) ? ICONSOLE_OPENED : ICONSOLE_FULL;
IConsoleResize();
IConsoleResize(w);
MarkWholeScreenDirty();
break;
case (WKC_CTRL | 'V'):
@@ -283,9 +283,9 @@ void IConsoleFree(void)
CloseConsoleLogIfActive();
}
void IConsoleResize(void)
void IConsoleResize(Window *w)
{
_iconsole_win = FindWindowById(WC_CONSOLE, 0);
assert(_iconsole_win == w);
switch (_iconsole_mode) {
case ICONSOLE_OPENED: