Project

General

Profile

« Previous | Next » 

Revision fdb5f389

Added by Leszek Koltunski about 3 years ago

Simplify objectlib's API.
Correct a recently introduced bug with resetting texture maps.

View differences:

src/main/java/org/distorted/main/RubikPreRender.java
131 131
      {
132 132
      mNewObject.createTexture();
133 133
      mView.setMovement(mNewObject.getMovement());
134

  
135 134
      if( firstTime ) mNewObject.restorePreferences(mPreferences);
136

  
137
      if( mScreenWidth!=0 )
138
        {
139
        mNewObject.recomputeScaleFactor(mScreenWidth);
140
        }
141

  
142 135
      mIsSolved = mNewObject.isSolved();
143 136
      }
144 137
    }
src/main/java/org/distorted/tutorials/TutorialPreRender.java
99 99
      {
100 100
      mNewObject.createTexture();
101 101
      mView.setMovement(mNewObject.getMovement());
102

  
103
      if( mScreenWidth!=0 )
104
        {
105
        mNewObject.recomputeScaleFactor(mScreenWidth);
106
        }
107

  
108 102
      mIsSolved = mNewObject.isSolved();
109 103
      }
110 104
    }

Also available in: Unified diff