pxt-common-packages 10.1.12 → 10.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/common-sim.js +3 -0
- package/libs/screen/sim/image.ts +3 -0
- package/package.json +1 -1
package/built/common-sim.js
CHANGED
|
@@ -4260,6 +4260,9 @@ var pxsim;
|
|
|
4260
4260
|
}
|
|
4261
4261
|
image.isValidImage = isValidImage;
|
|
4262
4262
|
function create(w, h) {
|
|
4263
|
+
// truncate decimal sizes
|
|
4264
|
+
w |= 0;
|
|
4265
|
+
h |= 0;
|
|
4263
4266
|
return new pxsim.RefImage(w, h, pxsim.getScreenState().bpp());
|
|
4264
4267
|
}
|
|
4265
4268
|
image.create = create;
|
package/libs/screen/sim/image.ts
CHANGED