mirror of
https://github.com/csharpee/Map-Projections.git
synced 2025-12-09 00:00:11 -05:00
better default image sizes
this rounding to 10 thing wasn't great, and the images were also a bit bigger than they needed to be.
This commit is contained in:
parent
dcaa087cf9
commit
c44b7763c5
@ -42,7 +42,7 @@ import static java.lang.Math.sqrt;
|
||||
public class MapConfigurationDialog extends Dialog<Boolean> {
|
||||
|
||||
public final int MIN_SIZE = 5, MAX_SIZE = 30000;
|
||||
public final double DEF_SIZE = 1500;
|
||||
public final double DEF_SIZE = 1200;
|
||||
|
||||
|
||||
private final double defaultRatio;
|
||||
@ -66,7 +66,7 @@ public class MapConfigurationDialog extends Dialog<Boolean> {
|
||||
this.widthBox.setMaxWidth(Double.MAX_VALUE);
|
||||
|
||||
this.heightBox = new Spinner<Integer>(MIN_SIZE, MAX_SIZE,
|
||||
10*(int)round(this.widthBox.getValue()/defaultRatio/10));
|
||||
(int)round(this.widthBox.getValue()/defaultRatio));
|
||||
this.heightBox.setEditable(true);
|
||||
this.widthBox.setMaxWidth(Double.MAX_VALUE);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user