Project

General

Profile

« Previous | Next » 

Revision 3717a94e

Added by Leszek Koltunski over 3 years ago

Slight correction for devices which have scrWidth>scrHeight ( Huawei Mate Xs! )

View differences:

src/main/java/org/distorted/objects/RubikObject.java
429 429

  
430 430
  public void recomputeScaleFactor(int scrWidth, int scrHeight)
431 431
    {
432
    float factor = Math.min(scrWidth,scrHeight);
433
    mNodeScale.set(factor,NODE_RATIO*factor,factor);
432
    mNodeScale.set(scrWidth,NODE_RATIO*scrWidth,scrWidth);
434 433
    }
435 434

  
436 435
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff