mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
reset dims on start to force relayout and init of board rect in common
code: scroll changes there require init after load since board dims aren't part of what's saved.
This commit is contained in:
parent
3da04d092d
commit
a9a4a99243
1 changed files with 4 additions and 2 deletions
|
@ -52,8 +52,8 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
private Paint m_tileStrokePaint;
|
||||
private int m_jniGamePtr;
|
||||
private CurGameInfo m_gi;
|
||||
private int m_layoutWidth = 0;
|
||||
private int m_layoutHeight = 0;
|
||||
private int m_layoutWidth;
|
||||
private int m_layoutHeight;
|
||||
private Bitmap m_bitmap; // the board
|
||||
private Canvas m_canvas; // owns the bitmap
|
||||
private int m_trayOwner;
|
||||
|
@ -281,6 +281,8 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
|
|||
m_jniThread = thread;
|
||||
m_jniGamePtr = gamePtr;
|
||||
m_gi = gi;
|
||||
m_layoutWidth = 0;
|
||||
m_layoutHeight = 0;
|
||||
}
|
||||
|
||||
// SyncedDraw interface implementation
|
||||
|
|
Loading…
Reference in a new issue