diff --git a/src/org/openstreetmap/josm/tools/ImageProvider.java b/src/org/openstreetmap/josm/tools/ImageProvider.java
index 9351a47..7f41b35 100644
a
|
b
|
public class ImageProvider {
|
1328 | 1328 | Logging.debug("Cursors are not available in headless mode. Returning null for ''{0}''", name); |
1329 | 1329 | return null; |
1330 | 1330 | } |
| 1331 | Point hotSpot = "crosshair".equals(name) ? new Point(10, 10) : new Point(3, 2); |
| 1332 | float scaling = 1.0f; |
| 1333 | if (GraphicsEnvironment.getLocalGraphicsEnvironment().getClass().getName().equals("sun.awt.Win32GraphicsEnvironment")) |
| 1334 | scaling = Toolkit.getDefaultToolkit().getScreenResolution() / 96.0f; |
1331 | 1335 | return Toolkit.getDefaultToolkit().createCustomCursor(img.getImage(), |
1332 | | "crosshair".equals(name) ? new Point(10, 10) : new Point(3, 2), "Cursor"); |
| 1336 | new Point(Math.round(hotSpot.x * scaling), Math.round(hotSpot.y * scaling)), name); |
1333 | 1337 | } |
1334 | 1338 | |
1335 | 1339 | /** 90 degrees in radians units */ |