Ticket #4234: antialiasing.patch
File antialiasing.patch, 1.0 KB (added by , 15 years ago) |
---|
-
src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
9 9 import java.awt.Point; 10 10 import java.awt.Polygon; 11 11 import java.awt.Rectangle; 12 import java.awt.RenderingHints; 12 13 import java.awt.geom.Point2D; 13 14 import java.util.ArrayList; 14 15 import java.util.Collection; … … 938 939 minEN = nc.getEastNorth(0, nc.getHeight() - 1); 939 940 maxEN = nc.getEastNorth(nc.getWidth() - 1, 0); 940 941 942 g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 943 Main.pref.getBoolean("mappaint.use-antialiasing", false) ? 944 RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF); 945 941 946 this.paintSettings = MapPaintSettings.INSTANCE; 942 947 this.painter = new MapPainter(paintSettings, g, inactive, nc, virtual, dist, circum); 943 948