- Timestamp:
- 2016-05-30T23:37:51+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r10228 r10303 1483 1483 if (absoluteFix) { 1484 1484 b.moveTo(p2.x, p2.y); 1485 b.lineTo(2 f*p1.x-p2.x, 2f*p1.y-p2.y); // bi-directional line1485 b.lineTo(2d*p1.x-p2.x, 2d*p1.y-p2.y); // bi-directional line 1486 1486 } else { 1487 1487 b.moveTo(p2.x, p2.y); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java
r10181 r10303 221 221 int x = (p.x+lastP.x)/2; 222 222 int y = (p.y+lastP.y)/2; 223 path.moveTo(( float) x-virtualNodeSize, y);224 path.lineTo(( float) x+virtualNodeSize, y);225 path.moveTo(x, ( float) y-virtualNodeSize);226 path.lineTo(x, ( float) y+virtualNodeSize);223 path.moveTo((double) x-virtualNodeSize, y); 224 path.lineTo((double) x+virtualNodeSize, y); 225 path.moveTo(x, (double) y-virtualNodeSize); 226 path.lineTo(x, (double) y+virtualNodeSize); 227 227 } 228 228 lastP = p; -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r10254 r10303 1503 1503 while (dist < segmentLength) { 1504 1504 for (int i = 0; i < 2; ++i) { 1505 float onewaySize = i == 0 ? 3f : 2f;1505 double onewaySize = i == 0 ? 3d : 2d; 1506 1506 GeneralPath onewayPath = i == 0 ? onewayArrowsCasing : onewayArrows; 1507 1507 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
r10181 r10303 432 432 final double sy = l * (p1.y - p2.y); 433 433 434 path.lineTo(p2.x + ( float) Math.round(cosPHI * sx - sinPHI * sy), p2.y + (float) Math.round(sinPHI * sx + cosPHI * sy));435 path.moveTo(p2.x + ( float) Math.round(cosPHI * sx + sinPHI * sy), p2.y + (float) Math.round(-sinPHI * sx + cosPHI * sy));434 path.lineTo(p2.x + (double) Math.round(cosPHI * sx - sinPHI * sy), p2.y + (double) Math.round(sinPHI * sx + cosPHI * sy)); 435 path.moveTo(p2.x + (double) Math.round(cosPHI * sx + sinPHI * sy), p2.y + (double) Math.round(-sinPHI * sx + cosPHI * sy)); 436 436 path.lineTo(p2.x, p2.y); 437 437 } -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r10300 r10303 520 520 int g = srcPixels[i + greenOffset] & 0xff; 521 521 int b = srcPixels[i + blueOffset] & 0xff; 522 float luminosity = r * .21f + g * .72f + b * .07f;522 double luminosity = r * .21d + g * .72d + b * .07d; 523 523 destPixels[i + redOffset] = mix(r, luminosity); 524 524 destPixels[i + greenOffset] = mix(g, luminosity); … … 530 530 } 531 531 532 private byte mix(int color, floatluminosity) {532 private byte mix(int color, double luminosity) { 533 533 int val = (int) (colorfulness * color + (1 - colorfulness) * luminosity); 534 534 if (val < 0) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r10217 r10303 484 484 new Color(trkPnt.customColoring.getRGB() & 0x00ffffff | hdopAlpha << 24, true); 485 485 g.setColor(customColoringTransparent); 486 // hdop cir les486 // hdop circles 487 487 int hdopp = mv.getPoint(new LatLon( 488 488 trkPnt.getCoor().lat(), 489 trkPnt.getCoor().lon() + 2 *6*hdop*360/40000000d)).x - screen.x;489 trkPnt.getCoor().lon() + 2d*6*hdop*360/40000000d)).x - screen.x; 490 490 g.drawArc(screen.x-hdopp/2, screen.y-hdopp/2, hdopp, hdopp, 0, 360); 491 491 }
Note:
See TracChangeset
for help on using the changeset viewer.