Revision 126393c8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/surfaceview/RenderThread.java | ||
---|---|---|
213 | 213 |
{ |
214 | 214 |
Log.d(TAG, "surfaceChanged " + width + "x" + height); |
215 | 215 |
|
216 |
float horiRatio = (float)width / mTexture.getWidth();
|
|
217 |
float vertRatio = (float)height/ mTexture.getHeight();
|
|
216 |
float horiRatio = (float)width / mMesh.getStretchX();
|
|
217 |
float vertRatio = (float)height/ mMesh.getStretchY();
|
|
218 | 218 |
float factor = horiRatio > vertRatio ? vertRatio : horiRatio; |
219 | 219 |
|
220 | 220 |
mScale.set( factor,factor,factor ); |
Also available in: Unified diff
Remove width & height from InternalSurface and move it to InternalOutputSurface.