Revision 5055b5d4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/girl/GirlRenderer.java | ||
---|---|---|
161 | 161 |
{ |
162 | 162 |
mGirl.abortEffects(EffectTypes.MATRIX); |
163 | 163 |
|
164 |
if( bmpHeight/bmpWidth > height/width )
|
|
164 |
if( (float)bmpHeight/bmpWidth > (float)height/width )
|
|
165 | 165 |
{ |
166 | 166 |
int w = (height*bmpWidth)/bmpHeight; |
167 | 167 |
float factor = (float)height/bmpHeight; |
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.