Revision 126393c8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
132 | 132 |
{ |
133 |
float horiRatio = (float)width / (NUM*mTexture.getWidth());
|
|
134 |
float vertRatio = (float)height/ ( mTexture.getHeight());
|
|
133 |
float horiRatio = (float)width / (NUM*mMesh.getStretchX());
|
|
134 |
float vertRatio = (float)height/ ( mMesh.getStretchY());
|
|
135 | 135 |
float factor = horiRatio > vertRatio ? vertRatio : horiRatio; |
136 | 136 |
|
137 | 137 |
mScale.set( factor,factor,factor ); |
Also available in: Unified diff
Remove width & height from InternalSurface and move it to InternalOutputSurface.