Changeset 4021 in josm


Ignore:
Timestamp:
2011-04-13T22:43:46+02:00 (8 years ago)
Author:
bastiK
Message:

turn off antialiasing for gpx layers by default. Too slow because gpx layer does not use quadbucket. (see #6197)

File:
1 edited

Legend:

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

    r3755 r4021  
    1414import java.awt.GridBagLayout;
    1515import java.awt.Point;
     16import java.awt.RenderingHints;
    1617import java.awt.event.ActionEvent;
    1718import java.awt.geom.Area;
     
    327328        lastTracks.clear();
    328329        lastTracks.addAll(data.tracks);
     330
     331        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
     332        Main.pref.getBoolean("mappaint.gpx.use-antialiasing", false) ?
     333                RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF);
    329334
    330335        /****************************************************************
Note: See TracChangeset for help on using the changeset viewer.