Project

General

Profile

« Previous | Next » 

Revision 1535f677

Added by Leszek Koltunski about 4 years ago

Minor.

View differences:

src/main/java/org/distorted/examples/inflate/InflateRenderer.java
116 116
      float factor = ( width*mObjHeight > height*mObjWidth ) ? (SCALE*height)/mObjHeight :  (SCALE*width)/mObjWidth;
117 117
      mMove.set( (width-factor*mObjWidth)/2 , (height-factor*mObjHeight)/2 , -factor*mObjDepth/2 );
118 118
      mScale.set(factor,factor,factor);
119
      mCenter.set( (float)mObjWidth/2, (float)mObjHeight/2, (float)mObjDepth/2 );
119
      mCenter.set( mObjWidth/2, mObjHeight/2, mObjDepth/2 );
120 120
      mScreen.resize(width, height);
121 121
      }
122 122

  

Also available in: Unified diff