Changeset 10484 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-06-24T22:35:50+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r10462 r10484 208 208 * Returns the image width in virtual pixels 209 209 * @return the image width in virtual pixels 210 * @since 9705 210 211 */ 211 212 public int getVirtualWidth() { … … 220 221 public int getVirtualHeight() { 221 222 return virtualHeight; 223 } 224 225 /** 226 * Returns the image width in pixels to use for display 227 * @return the image width in pixels to use for display 228 * @since 10484 229 */ 230 public int getAdjustedWidth() { 231 return GuiSizesHelper.getSizeDpiAdjusted(virtualWidth); 232 } 233 234 /** 235 * Returns the image height in pixels to use for display 236 * @return the image height in pixels to use for display 237 * @since 10484 238 */ 239 public int getAdjustedHeight() { 240 return GuiSizesHelper.getSizeDpiAdjusted(virtualHeight); 222 241 } 223 242
Note:
See TracChangeset
for help on using the changeset viewer.