pxt-arcade 1.10.30 → 1.10.32

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;
package/built/sim.js CHANGED
@@ -1997,6 +1997,9 @@ var pxsim;
1997
1997
  }
1998
1998
  image.isValidImage = isValidImage;
1999
1999
  function create(w, h) {
2000
+ // truncate decimal sizes
2001
+ w |= 0;
2002
+ h |= 0;
2000
2003
  return new pxsim.RefImage(w, h, pxsim.getScreenState().bpp());
2001
2004
  }
2002
2005
  image.create = create;