call board_invalRect rather than board_invalAll from ::Draw

This commit is contained in:
ehouse 2005-01-23 06:14:57 +00:00
parent 9edb556ded
commit 2c48033852

View file

@ -177,12 +177,8 @@ void CXWordsAppView::Draw( const TRect& aRect ) const
gc.Clear( aRect );
if ( iGame.board ) {
// This must go! Board needs a method to inval within a rect.
// But without this when a menu or other obscuring window goes
// away we get called to redraw but board thinks nothing needs
// drawing.
board_invalAll( iGame.board );
board_invalRect( iGame.board, aRect.iTl.iX, aRect.iTl.iY,
aRect.iBr.iX, aRect.iBr.iY );
board_draw( iGame.board );
}