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:
parent
9a95a4ab1b
commit
3609741b28
1 changed files with 1 additions and 1 deletions
2
qb.js
2
qb.js
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue