Changeset 10244 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2016-05-17T17:58:09+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java
r10181 r10244 85 85 done = true; 86 86 } else { 87 long x = 0, y = 0; 87 long x = 0; 88 long y = 0; 88 89 outcodeOut = outcode0 != 0 ? outcode0 : outcode1; 89 if ((outcodeOut & OUT_TOP) >0) {90 if ((outcodeOut & OUT_TOP) != 0) { 90 91 x = x1 + (x2 - x1) * (ymax - y1)/(y2 - y1); 91 92 y = ymax; 92 } else if ((outcodeOut & OUT_BOTTOM) >0) {93 } else if ((outcodeOut & OUT_BOTTOM) != 0) { 93 94 x = x1 + (x2 - x1) * (ymin - y1)/(y2 - y1); 94 95 y = ymin; 95 } else if ((outcodeOut & OUT_RIGHT) >0) {96 } else if ((outcodeOut & OUT_RIGHT) != 0) { 96 97 y = y1 + (y2 - y1) * (xmax - x1)/(x2 - x1); 97 98 x = xmax; 98 } else if ((outcodeOut & OUT_LEFT) >0) {99 } else if ((outcodeOut & OUT_LEFT) != 0) { 99 100 y = y1 + (y2 - y1) * (xmin - x1)/(x2 - x1); 100 101 x = xmin;
Note:
See TracChangeset
for help on using the changeset viewer.