Revision 5055b5d4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java | ||
---|---|---|
78 | 78 |
{ |
79 | 79 |
mObject.abortEffects(EffectTypes.MATRIX); |
80 | 80 |
|
81 |
if( mObjHeight/mObjWidth > height/width )
|
|
81 |
if( (float)mObjHeight/mObjWidth > (float)height/width )
|
|
82 | 82 |
{ |
83 | 83 |
int w = (height*mObjWidth)/mObjHeight; |
84 | 84 |
float factor = (float)height/mObjHeight; |
Also available in: Unified diff
1. (hopefully) finish the 'Save' app (now we can adjust the size of the resulting file)
2. Fix one long-standing bug in almost every single app.