- Timestamp:
- 2008-05-13T00:59:29+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r631 r638 10 10 import java.awt.Graphics; 11 11 import java.awt.GridBagLayout; 12 import java.awt.image.BufferedImage;13 12 import java.awt.Point; 14 import java.awt.Transparency;15 13 import java.awt.event.ActionEvent; 16 import java.awt.image.BufferedImage;17 14 import java.io.File; 18 15 import java.util.Collection; … … 175 172 else 176 173 { 177 // MapPaintVisitor paints calls fillPolygon() with an alpha 178 // channel -- this is slow, speed it up by rendering to a BufferedImage: 179 BufferedImage bim = new BufferedImage(mv.getWidth(), mv.getHeight(), Transparency.OPAQUE); 180 standardMapPainter.setGraphics(bim.createGraphics()); 181 standardMapPainter.setNavigatableComponent(mv); 182 standardMapPainter.inactive = inactive; 183 standardMapPainter.visitAll(data); 184 g.drawImage(bim, 0, 0, null); 174 standardMapPainter.setGraphics(g); 175 standardMapPainter.setNavigatableComponent(mv); 176 standardMapPainter.inactive = inactive; 177 standardMapPainter.visitAll(data); 185 178 } 186 179 Main.map.conflictDialog.paintConflicts(g, mv);
Note:
See TracChangeset
for help on using the changeset viewer.