Project

General

Profile

« Previous | Next » 

Revision adb2661c

Added by Leszek Koltunski almost 8 years ago

Correctly tesselate the DistortedBitmap target!

View differences:

src/main/java/org/distorted/library/DistortedBitmap.java
70 70
 */
71 71
   public DistortedBitmap(int width, int height, int cols)
72 72
     {     
73
     int xsize = (cols+1);
74
     int ysize = (cols+1)*height/width;
75
     
73
     int xsize = cols;
74
     int ysize = cols*height/width;
75

  
76 76
     if( xsize<2   ) xsize=  2;
77 77
     if( xsize>256 ) xsize=256;
78 78
     if( ysize<2   ) ysize=  2;

Also available in: Unified diff