mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
DRAW message not needed (using invalidate instead)
This commit is contained in:
parent
ea6ad877ca
commit
0a3a1623df
2 changed files with 5 additions and 13 deletions
|
@ -1789,9 +1789,6 @@ public class BoardActivity extends XWActivity
|
|||
Handler handler = new Handler() {
|
||||
public void handleMessage( Message msg ) {
|
||||
switch( msg.what ) {
|
||||
case JNIThread.DRAW:
|
||||
m_view.invalidate();
|
||||
break;
|
||||
case JNIThread.DIALOG:
|
||||
m_dlgBytes = (String)msg.obj;
|
||||
m_dlgTitle = msg.arg1;
|
||||
|
|
|
@ -96,12 +96,11 @@ public class JNIThread extends Thread {
|
|||
};
|
||||
|
||||
public static final int RUNNING = 1;
|
||||
public static final int DRAW = 2;
|
||||
public static final int DIALOG = 3;
|
||||
public static final int QUERY_ENDGAME = 4;
|
||||
public static final int TOOLBAR_STATES = 5;
|
||||
public static final int GOT_WORDS = 6;
|
||||
public static final int GAME_OVER = 7;
|
||||
public static final int DIALOG = 2;
|
||||
public static final int QUERY_ENDGAME = 3;
|
||||
public static final int TOOLBAR_STATES = 4;
|
||||
public static final int GOT_WORDS = 5;
|
||||
public static final int GAME_OVER = 6;
|
||||
|
||||
public class GameStateInfo implements Cloneable {
|
||||
public int visTileCount;
|
||||
|
@ -623,10 +622,6 @@ public class JNIThread extends Thread {
|
|||
// of the same bitmap for blitting.
|
||||
m_drawer.doJNIDraw();
|
||||
|
||||
// main UI thread has to invalidate view as it created
|
||||
// it.
|
||||
Message.obtain( m_handler, DRAW ).sendToTarget();
|
||||
|
||||
checkButtons();
|
||||
}
|
||||
} // for
|
||||
|
|
Loading…
Reference in a new issue