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/bean/BeanRenderer.java
108 108
    
109 109
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
110 110
     {
111
     float min= width>height ? height : width;
111
     if( width<height ) mScale.set( width,   width*mBmpRatio, 1 );
112
     else               mScale.set( height/mBmpRatio, height, 1 );
112 113

  
113
     mScale.set( min, min*mBmpRatio, 1 );
114 114
     mScreen.resize(width, height);
115 115
     }
116 116

  

Also available in: Unified diff