Revision 126393c8
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/save/SaveRenderer.java | ||
---|---|---|
190 | 190 |
|
191 | 191 |
private void applyMatrixEffects(int width, int height) |
192 | 192 |
{ |
193 |
float horiRatio = (float)width / mTexture.getWidth();
|
|
194 |
float vertRatio = (float)height/ mTexture.getHeight();
|
|
193 |
float horiRatio = (float)width / mMesh.getStretchX();
|
|
194 |
float vertRatio = (float)height/ mMesh.getStretchY();
|
|
195 | 195 |
float factor = horiRatio > vertRatio ? vertRatio : horiRatio; |
196 | 196 |
mScaleMain.set(factor,factor,factor); |
197 | 197 |
} |
Also available in: Unified diff
Remove width & height from InternalSurface and move it to InternalOutputSurface.