Changeset 15922 in josm for trunk/src/org
- Timestamp:
- 2020-02-24T21:18:34+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHook.java
r15918 r15922 144 144 default boolean isHighDpiDisplay() { 145 145 // https://stackoverflow.com/a/49770313 146 return !GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration() 146 return !GraphicsEnvironment.isHeadless() && 147 !GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration() 147 148 .getDefaultTransform().isIdentity(); 148 149 }
Note:
See TracChangeset
for help on using the changeset viewer.