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/differentbitmaps/DifferentBitmapsRenderer.java
112 112
    
113 113
   public void onSurfaceChanged(GL10 glUnused, int width, int height)
114 114
     {
115
     float horiRatio = (float)width / (NUM*mTexture[0].getWidth());
116
     float vertRatio = (float)height/ (    mTexture[0].getHeight());
115
     float horiRatio = (float)width / (NUM*mMesh.getStretchX());
116
     float vertRatio = (float)height/ (    mMesh.getStretchY());
117 117
     float factor    = horiRatio > vertRatio ? vertRatio : horiRatio;
118 118

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

Also available in: Unified diff