src/arch/mswin/mycurses.c
/* Check if console size has changed, and update LINES & COLS if so */
Check if console size has changed, and update LINES & COLS if so
Check if console size has changed and update LINES & COLS if so
static void check_for_resize (void)
{
	CONSOLE_SCREEN_BUFFER_INFO ConScreenBuffer = {0};
	if (!GetConsoleScreenBufferInfo(hStdout, &ConScreenBuffer))
		return;
	if (CurrentScreenWidth != ConScreenBuffer.dwSize.X
		|| CurrentScreenHeight != ConScreenBuffer.dwSize.Y) {
		LINES = CurrentScreenHeight= ConScreenBuffer.dwSize.Y;
		COLS = CurrentScreenWidth = ConScreenBuffer.dwSize.X;
		adjust_linescols();
		console_resize_callback();
	}
}
static void check_for_resize ( void ) { CONSOLE_SCREEN_BUFFER_INFO ConScreenBuffer = { 0 } ; if ( ! GetConsoleScreenBufferInfo ( hStdout , & ConScreenBuffer ) ) return ; if ( CurrentScreenWidth != ConScreenBuffer . dwSize . X || CurrentScreenHeight != ConScreenBuffer . dwSize . Y ) { LINES = CurrentScreenHeight = ConScreenBuffer . dwSize . Y ; COLS = CurrentScreenWidth = ConScreenBuffer . dwSize . X ; adjust_linescols ( ) ; console_resize_callback ( ) ; } }
Check if console size has changed, and update LINES & COLS if so
Check if console size has changed and update LINES & COLS if so
/* screen has been resized */