Project

General

Profile

« Previous | Next » 

Revision 5be1059b

Added by Leszek Koltunski over 4 years ago

Properly remember size of the Cube.

View differences:

src/main/java/org/distorted/magic/RubikSurfaceView.java
57 57
    private RubikCubeMovement mMovement;
58 58

  
59 59
    private boolean mInScrambleMode;
60
    private int mButton = RubikSize.SIZE3.ordinal();
61 60

  
62 61
    private boolean mDragging, mBeginningRotation, mContinuingRotation;
63 62
    private float mX, mY;
64 63
    private int mScreenWidth, mScreenHeight, mScreenMin;
65 64

  
65
    private static int mButton = RubikSize.SIZE3.ordinal();
66 66
    private static Static4D mQuatCurrent    = new Static4D(0,0,0,1);
67 67
    private static Static4D mQuatAccumulated= new Static4D(-0.25189602f,0.3546389f,0.009657208f,0.90038127f);
68 68
    private static Static4D mTempCurrent    = new Static4D(0,0,0,1);
......
142 142

  
143 143
///////////////////////////////////////////////////////////////////////////////////////////////////
144 144

  
145
    int getRedButton()
145
    static int getRedButton()
146 146
      {
147 147
      return mButton;
148 148
      }

Also available in: Unified diff