Changeset 6291 in josm
- Timestamp:
- 2013-10-04T00:06:31+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
r6182 r6291 154 154 * Returns the really displayed node icon for this {@code MapImage}. 155 155 * @param disabled {@code} true to request disabled version, {@code false} for the standard version 156 * @return The scaled down version to 16x16 pixels if the image sizeexceeds24x24pixels and no size has been explicitely specified156 * @return The scaled down version to 16x16 pixels if the image height and width exceeds 48 pixels and no size has been explicitely specified 157 157 * @since 6174 158 158 */ 159 159 public Image getDisplayedNodeIcon(boolean disabled) { 160 final int maxSize = 24;160 final int maxSize = 48; 161 161 final Image image = disabled ? getDisabled() : getImage(); 162 162 // Scale down large (.svg) images to 16x16 pixels if no size is explicitely specified 163 163 if ((width == -1 && image.getWidth(null) > maxSize) 164 ||(height == -1 && image.getHeight(null) > maxSize)) {164 && (height == -1 && image.getHeight(null) > maxSize)) { 165 165 return ImageProvider.createBoundedImage(image, 16); 166 166 } else {
Note:
See TracChangeset
for help on using the changeset viewer.