Changeset 35929 in osm for applications/editors
- Timestamp:
- 2022-03-14T19:12:37+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/DrawBuildingAction.java
r35916 r35929 49 49 public class DrawBuildingAction extends MapMode implements MapViewPaintable, DataSelectionListener, 50 50 KeyPressReleaseListener, ModifierExListener { 51 // We need to avoid opening many file descriptors on Linux under Wayland -- see JOSM #21929. This will probably also 52 // improve performance, since we aren't creating cursors all the time. 53 private static final Cursor CURSOR_SILO = ImageProvider.getCursor("crosshair", "silo"); 54 private static final Cursor CURSOR_BUILDING = ImageProvider.getCursor("crosshair", "building"); 55 51 56 private enum Mode { 52 57 None, Drawing, DrawingWidth, DrawingAngFix … … 87 92 try { 88 93 if (ToolSettings.Shape.CIRCLE == ToolSettings.getShape()) { 89 return ImageProvider.getCursor("crosshair", "silo");94 return CURSOR_SILO; 90 95 } else { 91 return ImageProvider.getCursor("crosshair", "building");96 return CURSOR_BUILDING; 92 97 } 93 98 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.