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/monalisa/MonaLisaRenderer.java
114 114
    
115 115
    public void onSurfaceChanged(GL10 glUnused, int width, int height) 
116 116
      {
117
      float min= width>height ? height : width;
117
      if( width<height ) mScale.set( width,   width*mBmpRatio, 1 );
118
      else               mScale.set( height/mBmpRatio, height, 1 );
118 119

  
119
      mScale.set( min, min*mBmpRatio, 1 );
120 120
      mScreen.resize(width, height);
121 121
      }
122 122

  

Also available in: Unified diff