mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
call board_invalRect rather than board_invalAll from ::Draw
This commit is contained in:
parent
9edb556ded
commit
2c48033852
1 changed files with 2 additions and 6 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue