mirror of
https://github.com/boxgaming/qbjs.git
synced 2024-09-19 20:14:58 +00:00
Fixes for Val NaN detection and _SMOOTH option for PutImage method
This commit is contained in:
parent
81d35d4923
commit
15d3b0ba20
1 changed files with 2 additions and 0 deletions
2
qb.js
2
qb.js
|
@ -967,6 +967,7 @@ var QB = new function() {
|
||||||
sourceImage.lastY = sy2 + sh;
|
sourceImage.lastY = sy2 + sh;
|
||||||
|
|
||||||
_flushScreenCache(_images[destImageId]);
|
_flushScreenCache(_images[destImageId]);
|
||||||
|
destImage.ctx.imageSmoothingEnabled = smooth;
|
||||||
destImage.ctx.drawImage(sourceImage.canvas, sx1, sy1, sw, sh, dx1, dy1, dw, dh);
|
destImage.ctx.drawImage(sourceImage.canvas, sx1, sy1, sw, sh, dx1, dy1, dw, dh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3337,6 +3338,7 @@ var QB = new function() {
|
||||||
} else {
|
} else {
|
||||||
ret = Number(value);
|
ret = Number(value);
|
||||||
}
|
}
|
||||||
|
if (isNaN(ret)) { ret = 0; }
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue