fix image inversion, slice cancelling
This commit is contained in:
parent
bd9ad20001
commit
ee9d363636
2 changed files with 4 additions and 4 deletions
|
|
@ -210,9 +210,9 @@ let gs_kiri_sla = exports;
|
|||
function polyout(poly, ctx) {
|
||||
poly.forEachPoint((p,i) => {
|
||||
if (i === 0) {
|
||||
ctx.moveTo(p.y * scaleY + height2, p.x * scaleX + width2);
|
||||
ctx.moveTo(height - (p.y * scaleY + height2), p.x * scaleX + width2);
|
||||
} else {
|
||||
ctx.lineTo(p.y * scaleY + height2, p.x * scaleX + width2);
|
||||
ctx.lineTo(height - (p.y * scaleY + height2), p.x * scaleX + width2);
|
||||
}
|
||||
}, true);
|
||||
ctx.closePath();
|
||||
|
|
|
|||
Loading…
Reference in a new issue