Revision d44ac567
Added by Leszek Koltunski almost 8 years ago
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;
|
|
74 |
int ysize = cols*height/width;
|
|
73 |
int xsize = (cols+1);
|
|
74 |
int ysize = (cols+1)*height/width;
|
|
75 | 75 |
|
76 | 76 |
if( xsize<2 ) xsize= 2; |
77 | 77 |
if( xsize>256 ) xsize=256; |
Also available in: Unified diff
Minor stuff - make the Bitmaps and the Cubes agree on the size of the grid, mostly.