Project

General

Profile

« Previous | Next » 

Revision 5055b5d4

Added by Leszek Koltunski over 7 years ago

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.

View differences:

src/main/java/org/distorted/examples/differentbitmaps/DifferentBitmapsRenderer.java
109 109
        bmp[i].abortEffects(EffectTypes.MATRIX);
110 110
        }
111 111
      
112
      if( bmpHeight/(NUM*bmpWidth) > height/width )
112
      if( (float)bmpHeight/(NUM*bmpWidth) > (float)height/width )
113 113
        {
114 114
        int w = (height*bmpWidth)/bmpHeight;
115 115
        float factor = (float)height/bmpHeight;

Also available in: Unified diff