Changeset 11702 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2017-03-08T21:18:57+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java
r11674 r11702 184 184 mapImage.offsetY = Math.round(offsetYF); 185 185 186 mapImage.alpha = Math.min(255, Math.max(0, Main.pref.getInteger("mappaint.icon-image-alpha", 255)));186 mapImage.alpha = Utils.clamp(Main.pref.getInteger("mappaint.icon-image-alpha", 255), 0, 255); 187 187 Integer pAlpha = Utils.colorFloat2int(c.get(keys[ICON_OPACITY_IDX], null, float.class)); 188 188 if (pAlpha != null) {
Note:
See TracChangeset
for help on using the changeset viewer.