Changeset 11027 in josm for trunk/src


Ignore:
Timestamp:
2016-09-19T15:54:17+02:00 (3 years ago)
Author:
michael2402
Message:

See #13636: Speed up map paint by clipping the way segments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r10953 r11027  
    6363import org.openstreetmap.josm.gui.MapViewState.MapViewPoint;
    6464import org.openstreetmap.josm.gui.NavigatableComponent;
    65 import org.openstreetmap.josm.gui.draw.MapPath2D;
    6665import org.openstreetmap.josm.gui.draw.MapViewPath;
    6766import org.openstreetmap.josm.gui.mappaint.ElemStyles;
     
    14231422            boolean showOneway, boolean onewayReversed) {
    14241423
    1425         MapPath2D path = new MapPath2D();
    1426         MapPath2D orientationArrows = showOrientation ? new MapPath2D() : null;
    1427         MapPath2D onewayArrows = showOneway ? new MapPath2D() : null;
    1428         MapPath2D onewayArrowsCasing = showOneway ? new MapPath2D() : null;
     1424        MapViewPath path = new MapViewPath(mapState);
     1425        MapViewPath orientationArrows = showOrientation ? new MapViewPath(mapState) : null;
     1426        MapViewPath onewayArrows = showOneway ? new MapViewPath(mapState) : null;
     1427        MapViewPath onewayArrowsCasing = showOneway ? new MapViewPath(mapState) : null;
    14291428        Rectangle bounds = g.getClipBounds();
    14301429        if (bounds != null) {
Note: See TracChangeset for help on using the changeset viewer.