Project

General

Profile

« Previous | Next » 

Revision e8205412

Added by Leszek Koltunski over 2 years ago

Simplify TwistyObject's API.

View differences:

src/main/java/org/distorted/main/RubikPreRender.java
128 128

  
129 129
    if( mNewObject!=null )
130 130
      {
131
      mNewObject.createTexture();
132 131
      mView.setMovement(mNewObject.getMovement());
133 132
      if( firstTime ) mNewObject.restorePreferences(mPreferences);
134 133
      mIsSolved = mNewObject.isSolved();
......
461 460

  
462 461
  void setScreenSize(int width)
463 462
    {
464
    if( mNewObject!=null )
465
      {
466
      mNewObject.createTexture();
467
      mNewObject.recomputeScaleFactor(width);
468
      }
469

  
470
    mScreenWidth  = width;
463
    if( mNewObject!=null ) mNewObject.recomputeScaleFactor(width);
464
    mScreenWidth = width;
471 465
    }
472 466

  
473 467
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff