Project

General

Profile

« Previous | Next » 

Revision 7fe64077

Added by Leszek Koltunski over 2 years ago

Small things.

View differences:

src/main/java/org/distorted/objectlib/main/ObjectControl.java
60 60
    private boolean mDragging, mBeginningRotation, mContinuingRotation;
61 61
    private int mScreenWidth, mScreenHeight, mScreenMin;
62 62
    private float mMoveX, mMoveY;
63
    private float mScale;
64 63

  
65 64
    private float mRotAngle, mInitDistance;
66 65
    private float mStartRotX, mStartRotY;
......
575 574

  
576 575
      mLastCubitColor = -1;
577 576
      mCurrRotSpeed   = 0.0f;
578
      mScale = 1.0f;
579 577

  
580 578
      mLastX = new float[NUM_SPEED_PROBES];
581 579
      mLastY = new float[NUM_SPEED_PROBES];
......
614 612
      mScreenHeight= height;
615 613
      mScreenMin   = Math.min(width,height);
616 614

  
617
      mPreRender.setScreenSize();
615
      TwistyObject object = mPreRender.getObject();
616
      if( object!=null ) object.setTexture();
617

  
618 618
      if( mObjectNode!=null ) mObjectNode.setSize(width,height);
619 619
      }
620 620

  
......
632 632

  
633 633
    public void setObjectScale(float scale)
634 634
      {
635
      mScale = scale;
636 635
      mPreRender.setScale(scale);
637 636
      }
638 637

  

Also available in: Unified diff