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,20 +291,19 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
||||||
DbgUtils.logf( "doJNIDraw() called" );
|
DbgUtils.logf( "doJNIDraw() called" );
|
||||||
boolean drew;
|
boolean drew;
|
||||||
synchronized( this ) {
|
synchronized( this ) {
|
||||||
drew = XwJNI.board_draw( m_jniGamePtr );
|
if ( !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" );
|
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 )
|
public void dimsChanged( BoardDims dims )
|
||||||
{
|
{
|
||||||
m_dims = dims;
|
m_dims = dims;
|
||||||
|
|
Loading…
Reference in a new issue