Skip to content

Commit

Permalink
Merge pull request #36 from WFBarnes/main
Browse files Browse the repository at this point in the history
Fixed slope bug in lineStyle for diagonal lines.
  • Loading branch information
boxgaming authored Nov 1, 2022
2 parents fe028da + 3609741 commit fb4d246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,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; }
Expand Down

0 comments on commit fb4d246

Please sign in to comment.