mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
reclaim net status icon's space for standalone games
This commit is contained in:
parent
ac2d46d109
commit
1e5f08c740
1 changed files with 9 additions and 5 deletions
|
@ -242,11 +242,15 @@ public class JNIThread extends Thread {
|
||||||
150 /*scorePct*/, 200 /*trayPct*/,
|
150 /*scorePct*/, 200 /*trayPct*/,
|
||||||
width, fontWidth, fontHeight, squareTiles,
|
width, fontWidth, fontHeight, squareTiles,
|
||||||
dims /* out param */ );
|
dims /* out param */ );
|
||||||
int statusWidth = dims.boardWidth / 15;
|
|
||||||
dims.scoreWidth -= statusWidth;
|
// Make space for net status icon if appropriate
|
||||||
int left = dims.scoreLeft + dims.scoreWidth + dims.timerWidth;
|
if ( m_gi.serverRole != DeviceRole.SERVER_STANDALONE ) {
|
||||||
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
int statusWidth = dims.boardWidth / 15;
|
||||||
dims.top + dims.scoreHt );
|
dims.scoreWidth -= statusWidth;
|
||||||
|
int left = dims.scoreLeft + dims.scoreWidth + dims.timerWidth;
|
||||||
|
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
||||||
|
dims.top + dims.scoreHt );
|
||||||
|
}
|
||||||
|
|
||||||
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue