Skip to content

Commit

Permalink
Line texture: fix scale precision, #105
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Aug 7, 2016
1 parent 8861125 commit c926a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vtm/src/org/oscim/renderer/bucket/LineTexBucket.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public static RenderBucket draw(RenderBucket b, GLViewport v,
if (s >= 1) {
pScale = (line.stipple * s);
int cnt = (int) (pScale / line.stipple);
pScale = line.stipple / (cnt + 1);
pScale = (float) line.stipple / (cnt + 1);
} else {
pScale = line.stipple / s;
int cnt = (int) (pScale / line.stipple);
Expand Down

0 comments on commit c926a71

Please sign in to comment.