mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
set trade mode in canvas where it'll do some good
This commit is contained in:
parent
d598dde86e
commit
82a82b5ae1
2 changed files with 8 additions and 2 deletions
|
@ -176,6 +176,11 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
return m_trayOwner;
|
||||
}
|
||||
|
||||
public void setInTrade( boolean inTrade )
|
||||
{
|
||||
m_inTrade = inTrade;
|
||||
}
|
||||
|
||||
// DrawCtxt interface implementation
|
||||
public boolean scoreBegin( Rect rect, int numPlayers, int[] scores,
|
||||
int remCount )
|
||||
|
|
|
@ -57,7 +57,6 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
private int m_layoutWidth;
|
||||
private int m_layoutHeight;
|
||||
private BoardCanvas m_canvas; // owns the bitmap
|
||||
private boolean m_inTrade = false;
|
||||
private JNIThread m_jniThread;
|
||||
private XWActivity m_parent;
|
||||
private Rect m_boundsScratch;
|
||||
|
@ -319,7 +318,9 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
|
||||
public void setInTrade( boolean inTrade )
|
||||
{
|
||||
m_inTrade = inTrade;
|
||||
if ( null != m_canvas ) {
|
||||
m_canvas.setInTrade( inTrade );
|
||||
}
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_INVALALL );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue