mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +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,
|
XwJNI.board_figureLayout( m_jniGamePtr, m_gi, 0, 0, width, height,
|
||||||
150, 200, width, fontWidth,
|
150, 200, width, fontWidth,
|
||||||
fontHeight, squareTiles, dims );
|
fontHeight, squareTiles, dims );
|
||||||
int statusDim = Math.min(dims.width / 15, dims.scoreHt);
|
int statusWidth = dims.boardWidth / 15;
|
||||||
dims.scoreWidth -= statusDim;
|
dims.scoreWidth -= statusWidth;
|
||||||
int left = dims.scoreLeft + dims.scoreWidth;
|
int left = dims.scoreLeft + dims.scoreWidth;
|
||||||
ConnStatusHandler.setRect( left, dims.top, left + statusDim,
|
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
||||||
dims.top + statusDim );
|
dims.top + dims.scoreHt );
|
||||||
|
|
||||||
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue