Ignore:
Timestamp:
2008-05-11T03:05:11+02:00 (16 years ago)
Author:
framm
Message:
  • polygon drawing performance increases by Daniel Naber <list2006@…>
File:
1 edited

Legend:

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

    r627 r631  
    182182                        }
    183183                        orderNumber++;
    184                         //  drawSegment(lastN, n, w.selected && !inactive ? selectedColor : wayColor, showDirectionArrow);
    185 
    186                         if (area && fillAreas)
    187                                 //Draw segments in a different colour so direction arrows show against the fill
    188                                 drawSeg(lastN, n, w.selected ? selectedColor : untaggedColor, showDirection, width, true);
    189                         else
    190                                 if (area)
     184
     185                        if (area && fillAreas) {
     186                // hack to make direction arrows visible against filled background
     187                                if (showDirection)
     188                                    drawSeg(lastN, n, w.selected ? selectedColor : untaggedColor, showDirection, width, true);
     189                        } else {
     190                                if (area) {
    191191                                        drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, true);
    192                                 else
    193                                         if (realWidth > 0 && useRealWidth && !showDirection){
     192                                } else {
     193                                        if (realWidth > 0 && useRealWidth && !showDirection) {
    194194                                                int tmpWidth = (int) (100 /  (float) (circum / realWidth));
    195195                                                if (tmpWidth > width) width = tmpWidth;
    196196                                        }
     197                }
     198            }
    197199
    198200                        drawSeg(lastN, n, w.selected ? selectedColor : colour, showDirection, width, dashed);
Note: See TracChangeset for help on using the changeset viewer.