src/arch/mswin/mycurses.c
/* refresh virtual image of screen (curscr) */
refresh virtual image of screen (curscr)
refresh virtual image of screen ( curscr )
int wnoutrefresh(WINDOW *wp)
{
	int i, j;
	int y, x;
	if(wp->_parent)
		wrefresh(wp->_parent);
	for(i = 0; i < wp->_maxy; i++)
	{
		y = wp->_begy + i;
		if(y < curscr->_maxy)
		{
			for(j = 0; j < wp->_maxx; j++)
			{
				x = wp->_begx + j;
				if(x < curscr->_maxx)
				{
					if(atw(curscr, y, x) != atw(wp, i, j))
					{
						if(y < curscr->_mincy) curscr->_mincy = y;
						if(y > curscr->_maxcy) curscr->_maxcy = y;
						setw(curscr, y, x, atw(wp, i, j));
					}
				}
			}
 		}
	}
	return(0);
}
int wnoutrefresh ( WINDOW * wp ) { int i , j ; int y , x ; if ( wp -> _parent ) wrefresh ( wp -> _parent ) ; for ( i = 0 ; i < wp -> _maxy ; i ++ ) { y = wp -> _begy + i ; if ( y < curscr -> _maxy ) { for ( j = 0 ; j < wp -> _maxx ; j ++ ) { x = wp -> _begx + j ; if ( x < curscr -> _maxx ) { if ( atw ( curscr , y , x ) != atw ( wp , i , j ) ) { if ( y < curscr -> _mincy ) curscr -> _mincy = y ; if ( y > curscr -> _maxcy ) curscr -> _maxcy = y ; setw ( curscr , y , x , atw ( wp , i , j ) ) ; } } } } } return ( 0 ) ; }
refresh virtual image of screen (curscr)
refresh virtual image of screen ( curscr )