mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
use cell width for status width
This commit is contained in:
parent
8b26a5316d
commit
71b2afefbc
1 changed files with 4 additions and 4 deletions
|
@ -239,11 +239,11 @@ public class JNIThread extends Thread {
|
|||
XwJNI.board_figureLayout( m_jniGamePtr, m_gi, 0, 0, width, height,
|
||||
150, 200, width, fontWidth,
|
||||
fontHeight, squareTiles, dims );
|
||||
int statusDim = Math.min(dims.width / 15, dims.scoreHt);
|
||||
dims.scoreWidth -= statusDim;
|
||||
int statusWidth = dims.boardWidth / 15;
|
||||
dims.scoreWidth -= statusWidth;
|
||||
int left = dims.scoreLeft + dims.scoreWidth;
|
||||
ConnStatusHandler.setRect( left, dims.top, left + statusDim,
|
||||
dims.top + statusDim );
|
||||
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
||||
dims.top + dims.scoreHt );
|
||||
|
||||
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue