mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
inval view even if board_draw says there's more drawing to do -- as
there's probably still a lot that got drawn.
This commit is contained in:
parent
f6e0febd6d
commit
d598dde86e
1 changed files with 10 additions and 11 deletions
|
@ -291,18 +291,17 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
DbgUtils.logf( "doJNIDraw() called" );
|
||||
boolean drew;
|
||||
synchronized( this ) {
|
||||
drew = XwJNI.board_draw( m_jniGamePtr );
|
||||
}
|
||||
if ( drew ) {
|
||||
// Force update now that we have bits to copy
|
||||
// m_parent.runOnUiThread( new Runnable() {
|
||||
// public void run() {
|
||||
// invalidate();
|
||||
// }
|
||||
// });
|
||||
} else {
|
||||
DbgUtils.logf( "doJNIDraw: draw not complete" );
|
||||
if ( !XwJNI.board_draw( m_jniGamePtr ) ) {
|
||||
DbgUtils.logf( "doJNIDraw: draw not complete" );
|
||||
}
|
||||
}
|
||||
|
||||
// Force update now that we have bits to copy
|
||||
m_parent.runOnUiThread( new Runnable() {
|
||||
public void run() {
|
||||
invalidate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void dimsChanged( BoardDims dims )
|
||||
|
|
Loading…
Reference in a new issue