Revision 5055b5d4
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/sink/SinkRenderer.java | ||
---|---|---|
76 | 76 |
{ |
77 | 77 |
sinkBmp.abortEffects(EffectTypes.MATRIX); |
78 | 78 |
|
79 |
if( bmpHeight/bmpWidth > height/width )
|
|
79 |
if( (float)bmpHeight/bmpWidth > (float)height/width )
|
|
80 | 80 |
{ |
81 | 81 |
int w = (height*bmpWidth)/bmpHeight; |
82 | 82 |
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.