Revision 126393c8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
84 | 84 |
|
85 | 85 |
public void onSurfaceChanged(GL10 glUnused, int width, int height) |
86 | 86 |
{ |
87 |
float horiRatio = (float)width / mTexture.getWidth();
|
|
88 |
float vertRatio = (float)height/ mTexture.getHeight();
|
|
87 |
float horiRatio = (float)width / mMesh.getStretchX();
|
|
88 |
float vertRatio = (float)height/ mMesh.getStretchY();
|
|
89 | 89 |
float factor = horiRatio > vertRatio ? vertRatio : horiRatio; |
90 | 90 |
|
91 | 91 |
mScale.set( factor,factor,factor ); |
Also available in: Unified diff
Remove width & height from InternalSurface and move it to InternalOutputSurface.