1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-09-19 20:14:58 +00:00

Fixed slope bug in lineStyle for diagonal lines.

This commit is contained in:
William Barnes 2022-11-01 00:26:07 -04:00
parent 9a95a4ab1b
commit 3609741b28

2
qb.js
View file

@ -1652,7 +1652,7 @@ var QB = new function() {
var ptn = sty;
var slope;
var mi;
if (lx > ly) {
if (lx >= ly) {
var y1f = y1;
if (lx) { slope = (y1 - y2) / lx; }
if (x1 < x2) { mi = 1; } else { mi = -1; }