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/listener/ListenerRenderer.java
139 139
    
140 140
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
141 141
     {
142
     float min= width>height ? height : width;
142
     if( width<height ) mScale.set( width,   width*mBmpRatio, width  );
143
     else               mScale.set( height/mBmpRatio, height, height );
143 144

  
144
     mScale.set( min, min*mBmpRatio, min );
145 145
     mScreen.resize(width, height);
146 146
     }
147 147

  

Also available in: Unified diff