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:
Eric House 2013-11-10 06:41:12 -08:00
parent f6e0febd6d
commit d598dde86e

View file

@ -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 )