Changeset 9437 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-14T09:06:41+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r9430 r9437 9 9 import java.awt.Graphics; 10 10 import java.awt.Graphics2D; 11 import java.awt.GraphicsEnvironment; 11 12 import java.awt.GridBagLayout; 12 13 import java.awt.Image; … … 668 669 669 670 protected int estimateTileCacheSize() { 670 int height = (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight(); 671 int width = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth(); 671 // Default screen size in headless mode, for unit tests 672 int height = 800; 673 int width = 600; 674 if (!GraphicsEnvironment.isHeadless()) { 675 height = (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight(); 676 width = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth(); 677 } 672 678 int tileSize = 256; // default tile size 673 679 if (tileSource != null) {
Note:
See TracChangeset
for help on using the changeset viewer.