Petri Hintukainen pushed to branch master at VideoLAN / libbluray

Commits:
f246105e by hpi1 at 2019-02-24T11:40:24Z
Fix polygon-based BD-J graphics primitives

Fixes #7

- - - - -


1 changed file:

- src/libbluray/bdj/java/java/awt/BDGraphicsBase.java


Changes:

=====================================
src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
=====================================
@@ -670,7 +670,7 @@ abstract class BDGraphicsBase extends DVBGraphics 
implements ConstrainableGraphi
             drawPoint(xPoints[0], yPoints[0], foreground.getRGB());
         } else {
             for (int i = 0; i < (nPoints - 1); i++)
-                drawLine(xPoints[i], xPoints[i], xPoints[i + 1], xPoints[i + 
1]);
+                drawLine(xPoints[i], yPoints[i], xPoints[i + 1], yPoints[i + 
1]);
         }
     }
 
@@ -680,9 +680,9 @@ abstract class BDGraphicsBase extends DVBGraphics 
implements ConstrainableGraphi
             drawPoint(xPoints[0], yPoints[0], foreground.getRGB());
         } else {
             for (int i = 0; i < (nPoints - 1); i++)
-                drawLine(xPoints[i], xPoints[i], xPoints[i + 1], xPoints[i + 
1]);
+                drawLine(xPoints[i], yPoints[i], xPoints[i + 1], yPoints[i + 
1]);
             if (nPoints > 2)
-                drawLine(xPoints[0], xPoints[0], xPoints[nPoints - 1], 
xPoints[nPoints - 1]);
+                drawLine(xPoints[0], yPoints[0], xPoints[nPoints - 1], 
yPoints[nPoints - 1]);
         }
     }
 



View it on GitLab: 
https://code.videolan.org/videolan/libbluray/commit/f246105ed793a325d83c5447e9c8f1595a60dc3d

-- 
View it on GitLab: 
https://code.videolan.org/videolan/libbluray/commit/f246105ed793a325d83c5447e9c8f1595a60dc3d
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to