pxt-common-packages 10.1.12 → 10.2.1

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.
@@ -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;
@@ -746,6 +746,9 @@ namespace pxsim.image {
746
746
 
747
747
 
748
748
  export function create(w: number, h: number) {
749
+ // truncate decimal sizes
750
+ w |= 0
751
+ h |= 0
749
752
  return new RefImage(w, h, getScreenState().bpp())
750
753
  }
751
754
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "10.1.12",
3
+ "version": "10.2.1",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",