[libbluray-devel] Fix rounding in PolyEdge.intersectionX()
Ian Curtis
git at videolan.org
Sat Mar 29 12:04:19 CET 2014
libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Sat Mar 29 13:03:43 2014 +0200| [e2d60c938a2f8ce4237041bf7f322df859133f43] | committer: hpi1
Fix rounding in PolyEdge.intersectionX()
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e2d60c938a2f8ce4237041bf7f322df859133f43
---
src/libbluray/bdj/java/java/awt/PolyEdge.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/java/java/awt/PolyEdge.java b/src/libbluray/bdj/java/java/awt/PolyEdge.java
index f83558d..1b7533e 100644
--- a/src/libbluray/bdj/java/java/awt/PolyEdge.java
+++ b/src/libbluray/bdj/java/java/awt/PolyEdge.java
@@ -68,6 +68,6 @@ class PolyEdge {
return x1;
}
- return (int)((y - c) / m);
+ return (int)(((y - c) / m) + 0.5f);
}
}
More information about the libbluray-devel
mailing list