mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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() {
|
Handler handler = new Handler() {
|
||||||
public void handleMessage( Message msg ) {
|
public void handleMessage( Message msg ) {
|
||||||
switch( msg.what ) {
|
switch( msg.what ) {
|
||||||
case JNIThread.DRAW:
|
|
||||||
m_view.invalidate();
|
|
||||||
break;
|
|
||||||
case JNIThread.DIALOG:
|
case JNIThread.DIALOG:
|
||||||
m_dlgBytes = (String)msg.obj;
|
m_dlgBytes = (String)msg.obj;
|
||||||
m_dlgTitle = msg.arg1;
|
m_dlgTitle = msg.arg1;
|
||||||
|
|
|
@ -96,12 +96,11 @@ public class JNIThread extends Thread {
|
||||||
};
|
};
|
||||||
|
|
||||||
public static final int RUNNING = 1;
|
public static final int RUNNING = 1;
|
||||||
public static final int DRAW = 2;
|
public static final int DIALOG = 2;
|
||||||
public static final int DIALOG = 3;
|
public static final int QUERY_ENDGAME = 3;
|
||||||
public static final int QUERY_ENDGAME = 4;
|
public static final int TOOLBAR_STATES = 4;
|
||||||
public static final int TOOLBAR_STATES = 5;
|
public static final int GOT_WORDS = 5;
|
||||||
public static final int GOT_WORDS = 6;
|
public static final int GAME_OVER = 6;
|
||||||
public static final int GAME_OVER = 7;
|
|
||||||
|
|
||||||
public class GameStateInfo implements Cloneable {
|
public class GameStateInfo implements Cloneable {
|
||||||
public int visTileCount;
|
public int visTileCount;
|
||||||
|
@ -623,10 +622,6 @@ public class JNIThread extends Thread {
|
||||||
// of the same bitmap for blitting.
|
// of the same bitmap for blitting.
|
||||||
m_drawer.doJNIDraw();
|
m_drawer.doJNIDraw();
|
||||||
|
|
||||||
// main UI thread has to invalidate view as it created
|
|
||||||
// it.
|
|
||||||
Message.obtain( m_handler, DRAW ).sendToTarget();
|
|
||||||
|
|
||||||
checkButtons();
|
checkButtons();
|
||||||
}
|
}
|
||||||
} // for
|
} // for
|
||||||
|
|
Loading…
Reference in a new issue