1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-09-19 12:04:50 +00:00

Fixes for Val NaN detection and _SMOOTH option for PutImage method

This commit is contained in:
boxgaming 2024-06-28 15:18:23 -05:00
parent 81d35d4923
commit 15d3b0ba20

2
qb.js
View file

@ -967,6 +967,7 @@ var QB = new function() {
sourceImage.lastY = sy2 + sh;
_flushScreenCache(_images[destImageId]);
destImage.ctx.imageSmoothingEnabled = smooth;
destImage.ctx.drawImage(sourceImage.canvas, sx1, sy1, sw, sh, dx1, dy1, dw, dh);
}
@ -3337,6 +3338,7 @@ var QB = new function() {
} else {
ret = Number(value);
}
if (isNaN(ret)) { ret = 0; }
return ret;
};