mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
clear the net status rect for standalone games' boards to avoid ghost
button effect when they're opened after a networked game.
This commit is contained in:
parent
6851fd9746
commit
c796e7d4cc
2 changed files with 7 additions and 0 deletions
|
@ -146,6 +146,11 @@ public class ConnStatusHandler {
|
||||||
s_rect = new Rect( left, top, right, bottom );
|
s_rect = new Rect( left, top, right, bottom );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void clearRect()
|
||||||
|
{
|
||||||
|
s_rect = null;
|
||||||
|
}
|
||||||
|
|
||||||
public static void setHandler( ConnStatusCBacks cbacks )
|
public static void setHandler( ConnStatusCBacks cbacks )
|
||||||
{
|
{
|
||||||
s_cbacks = cbacks;
|
s_cbacks = cbacks;
|
||||||
|
|
|
@ -250,6 +250,8 @@ public class JNIThread extends Thread {
|
||||||
int left = dims.scoreLeft + dims.scoreWidth + dims.timerWidth;
|
int left = dims.scoreLeft + dims.scoreWidth + dims.timerWidth;
|
||||||
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
ConnStatusHandler.setRect( left, dims.top, left + statusWidth,
|
||||||
dims.top + dims.scoreHt );
|
dims.top + dims.scoreHt );
|
||||||
|
} else {
|
||||||
|
ConnStatusHandler.clearRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
XwJNI.board_applyLayout( m_jniGamePtr, dims );
|
||||||
|
|
Loading…
Add table
Reference in a new issue