pass only -1 or 1 into board_zoom

This commit is contained in:
eehouse 2010-06-05 03:40:43 +00:00
parent f514717428
commit ca968d8294
2 changed files with 1 additions and 3 deletions

View file

@ -363,7 +363,7 @@ public class BoardActivity extends Activity implements UtilCtxt {
case KeyEvent.KEYCODE_VOLUME_UP:
if ( m_volKeysZoom ) {
int zoomBy = KeyEvent.KEYCODE_VOLUME_DOWN == keyCode
? -JNIThread.ZOOM_AMT : JNIThread.ZOOM_AMT;
? -1 : 1;
handled = doZoom( zoomBy );
}
break;

View file

@ -80,8 +80,6 @@ public class JNIThread extends Thread {
public static final int DIALOG = 3;
public static final int QUERY_ENDGAME = 4;
public static final int ZOOM_AMT = 2;
private boolean m_stopped = false;
private int m_jniGamePtr;
private String m_path;