Project

General

Profile

« Previous | Next » 

Revision c7a31368

Added by Leszek Koltunski about 4 years ago

Further corrections for the first apps.

View differences:

src/main/java/org/distorted/examples/girl/GirlRenderer.java
166 166
    
167 167
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
168 168
     {
169
     float min= width>height ? height : width;
169
     if( width<height ) mScale.set( width,   width*mBmpRatio, width  );
170
     else               mScale.set( height/mBmpRatio, height, height );
170 171

  
171
     mScale.set( min, min*mBmpRatio, min );
172 172
     mScreen.resize(width, height);
173 173
     }
174 174

  

Also available in: Unified diff