Project

General

Profile

« Previous | Next » 

Revision 79f172ab

Added by Leszek Koltunski almost 8 years ago

Fix the 1x1 case! Before it used to be impossible to create a DistortedBitmap just with 2 triangles!

View differences:

src/main/java/org/distorted/library/DistortedBitmap.java
73 73
     int xsize = cols;
74 74
     int ysize = cols*height/width;
75 75

  
76
     if( xsize<2   ) xsize=  2;
76
     if( xsize<1   ) xsize=  1;
77 77
     if( xsize>256 ) xsize=256;
78
     if( ysize<2   ) ysize=  2;
78
     if( ysize<1   ) ysize=  1;
79 79
     if( ysize>256 ) ysize=256;
80 80
     
81 81
     mSizeX= width;

Also available in: Unified diff