Revision 126393c8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
163 | 163 |
|
164 | 164 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
165 | 165 |
{ |
166 |
float horiRatio = (float)width / mTexture.getWidth();
|
|
167 |
float vertRatio = (float)height/ mTexture.getHeight();
|
|
166 |
float horiRatio = (float)width / mMesh.getStretchX();
|
|
167 |
float vertRatio = (float)height/ mMesh.getStretchY();
|
|
168 | 168 |
float factor = horiRatio > vertRatio ? vertRatio : horiRatio; |
169 | 169 |
|
170 | 170 |
mScale.set( factor,factor,factor ); |
Also available in: Unified diff
Remove width & height from InternalSurface and move it to InternalOutputSurface.