Changeset 2706 in josm for trunk


Ignore:
Timestamp:
2009-12-30T00:30:39+01:00 (10 years ago)
Author:
stoecker
Message:

fix #4234 - fix anti-aliasing - patch by Upliner

File:
1 edited

Legend:

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

    r2679 r2706  
    1010import java.awt.Polygon;
    1111import java.awt.Rectangle;
     12import java.awt.RenderingHints;
    1213import java.awt.geom.Point2D;
    1314import java.util.ArrayList;
     
    939940        maxEN = nc.getEastNorth(nc.getWidth() - 1, 0);
    940941
     942        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
     943                Main.pref.getBoolean("mappaint.use-antialiasing", false) ?
     944                        RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF);
     945
    941946        this.paintSettings = MapPaintSettings.INSTANCE;
    942947        this.painter = new MapPainter(paintSettings, g, inactive, nc, virtual, dist, circum);
Note: See TracChangeset for help on using the changeset viewer.