From: krakjoe Date: Mon, 18 Nov 2013 13:29:08 +0000 (+0000) Subject: don't resize window on windows anymore, not required X-Git-Tag: php-5.6.0alpha1~110^2~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b7b7c4a3976d7c53433bb361a7a2883b38feb69;p=php don't resize window on windows anymore, not required --- diff --git a/phpdbg.c b/phpdbg.c index e54290616e..65c5dfd78f 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -428,19 +428,10 @@ int main(int argc, char **argv) /* {{{ */ #endif #ifdef PHP_WIN32 - HWND console; - RECT consoleRect; _fmode = _O_BINARY; /* sets default for file streams to binary */ setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */ setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */ setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */ - - console = GetConsoleWindow(); - if (console) { - GetWindowRect(console, &consoleRect); - MoveWindow( - console, consoleRect.left, consoleRect.top, 800,600, TRUE); - } #endif #ifdef ZTS @@ -607,7 +598,7 @@ phpdbg_main: } zend_end_try(); /* print blurb */ - phpdbg_welcome(cleaning TSRMLS_CC); + phpdbg_welcome((cleaning > 0) TSRMLS_CC); /* initialize from file */ zend_try {