Project

General

Profile

« Previous | Next » 

Revision 126393c8

Added by Leszek Koltunski about 4 years ago

Remove width & height from InternalSurface and move it to InternalOutputSurface.

View differences:

src/main/java/org/distorted/examples/objecttree/ObjectTreeRenderer.java
116 116
    
117 117
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
118 118
      {
119
      float horiRatio = (float)width / mLisaTexture.getWidth();
120
      float vertRatio = (float)height/ mLisaTexture.getHeight();
119
      float horiRatio = (float)width / mMeshRectangles.getStretchX();
120
      float vertRatio = (float)height/ mMeshRectangles.getStretchY();
121 121
      float factor    = horiRatio > vertRatio ? vertRatio : horiRatio;
122 122

  
123 123
      mScale.set( factor,factor,factor );

Also available in: Unified diff