Ignore:
Timestamp:
2009-11-14T18:47:09+01:00 (14 years ago)
Author:
jttt
Message:

Added parameter Bounds to MapView, draw only currently visible primitives in MapPaintVisititor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r2446 r2450  
    5050import org.openstreetmap.josm.gui.layer.markerlayer.PlayHeadMarker;
    5151import org.openstreetmap.josm.tools.AudioPlayer;
     52
    5253
    5354/**
     
    385386        tempG.fillRect(0, 0, getWidth(), getHeight());
    386387
     388        Bounds box = getLatLonBounds(g.getClipBounds());
     389
    387390        for (Layer l: getVisibleLayersInZOrder()) {
    388             l.paint(tempG, this);
     391            l.paint(tempG, this, box);
    389392        }
    390393        for (MapViewPaintable mvp : temporaryLayers) {
    391             mvp.paint(tempG, this);
     394            mvp.paint(tempG, this, box);
    392395        }
    393396
Note: See TracChangeset for help on using the changeset viewer.