Changeset 16580 in josm
- Timestamp:
- 2020-06-08T22:16:08+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r16579 r16580 10 10 import java.awt.DisplayMode; 11 11 import java.awt.GraphicsEnvironment; 12 import java.awt.Toolkit; 12 13 import java.awt.event.ActionEvent; 13 14 import java.awt.event.KeyEvent; 15 import java.awt.geom.AffineTransform; 14 16 import java.lang.management.ManagementFactory; 15 17 import java.util.ArrayList; … … 105 107 // Java 11: use DisplayMode#toString 106 108 b.append(' ').append(dm.getWidth()).append('x').append(dm.getHeight()); 109 AffineTransform transform = gd.getDefaultConfiguration().getDefaultTransform(); 110 b.append(" (scaling ").append(transform.getScaleX()).append("x").append(transform.getScaleY()).append(")"); 107 111 } 108 112 return b.toString(); … … 113 117 .append((int) maxScreenSize.getWidth()).append('x') 114 118 .append((int) maxScreenSize.getHeight()).append('\n'); 119 if (!GraphicsEnvironment.isHeadless()) { 120 Dimension bestCursorSize16 = Toolkit.getDefaultToolkit().getBestCursorSize(16, 16); 121 Dimension bestCursorSize32 = Toolkit.getDefaultToolkit().getBestCursorSize(32, 32); 122 text.append("Best cursor sizes: 16x16 -> ") 123 .append(bestCursorSize16.width).append("x").append(bestCursorSize16.height) 124 .append(", 32x32 -> ") 125 .append(bestCursorSize32.width).append("x").append(bestCursorSize32.height) 126 .append("\n"); 127 } 115 128 116 129 if (PlatformManager.isPlatformUnixoid()) {
Note:
See TracChangeset
for help on using the changeset viewer.