pxt-common-packages 12.2.5 → 12.2.6

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.
@@ -6055,7 +6055,7 @@ switch (step) {
6055
6055
  return leave(s, r0)
6056
6056
  default: oops()
6057
6057
  } } }
6058
- helpers_imageDrawIcon__P65645.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
6058
+ helpers_imageDrawIcon__P65645.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
6059
6059
 
6060
6060
  function helpers_imageDrawIcon__P65645_mk(s) {
6061
6061
  checkStack(s.depth);
@@ -6118,7 +6118,7 @@ switch (step) {
6118
6118
  return leave(s, r0)
6119
6119
  default: oops()
6120
6120
  } } }
6121
- helpers_pack__P65641.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
6121
+ helpers_pack__P65641.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
6122
6122
 
6123
6123
  function helpers_pack__P65641_mk(s) {
6124
6124
  checkStack(s.depth);
@@ -6290,7 +6290,7 @@ switch (step) {
6290
6290
  return leave(s, r0)
6291
6291
  default: oops()
6292
6292
  } } }
6293
- helpers_imageFillRect__P65646.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
6293
+ helpers_imageFillRect__P65646.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
6294
6294
 
6295
6295
  function helpers_imageFillRect__P65646_mk(s) {
6296
6296
  checkStack(s.depth);
@@ -15825,7 +15825,7 @@ switch (step) {
15825
15825
  return leave(s, r0)
15826
15826
  default: oops()
15827
15827
  } } }
15828
- helpers_imageDrawRect__P65649.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15828
+ helpers_imageDrawRect__P65649.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15829
15829
 
15830
15830
  function helpers_imageDrawRect__P65649_mk(s) {
15831
15831
  checkStack(s.depth);
@@ -15885,7 +15885,7 @@ switch (step) {
15885
15885
  return leave(s, r0)
15886
15886
  default: oops()
15887
15887
  } } }
15888
- helpers_imageDrawLine__P65648.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15888
+ helpers_imageDrawLine__P65648.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15889
15889
 
15890
15890
  function helpers_imageDrawLine__P65648_mk(s) {
15891
15891
  checkStack(s.depth);
@@ -21550,7 +21550,7 @@ switch (step) {
21550
21550
  return leave(s, r0)
21551
21551
  default: oops()
21552
21552
  } } }
21553
- helpers_setScreenBrightness__P65656.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
21553
+ helpers_setScreenBrightness__P65656.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
21554
21554
 
21555
21555
  function helpers_setScreenBrightness__P65656_mk(s) {
21556
21556
  checkStack(s.depth);
@@ -21621,7 +21621,7 @@ switch (step) {
21621
21621
  return leave(s, r0)
21622
21622
  default: oops()
21623
21623
  } } }
21624
- helpers_screenBrightness__P65657.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21624
+ helpers_screenBrightness__P65657.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21625
21625
 
21626
21626
  function helpers_screenBrightness__P65657_mk(s) {
21627
21627
  checkStack(s.depth);
@@ -34240,7 +34240,7 @@ switch (step) {
34240
34240
  return leave(s, r0)
34241
34241
  default: oops()
34242
34242
  } } }
34243
- helpers_imageBlit__P65643.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
34243
+ helpers_imageBlit__P65643.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
34244
34244
 
34245
34245
  function helpers_imageBlit__P65643_mk(s) {
34246
34246
  checkStack(s.depth);
@@ -5946,7 +5946,7 @@ switch (step) {
5946
5946
  return leave(s, r0)
5947
5947
  default: oops()
5948
5948
  } } }
5949
- helpers_imageDrawIcon__P81870.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
5949
+ helpers_imageDrawIcon__P81870.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
5950
5950
 
5951
5951
  function helpers_imageDrawIcon__P81870_mk(s) {
5952
5952
  checkStack(s.depth);
@@ -6009,7 +6009,7 @@ switch (step) {
6009
6009
  return leave(s, r0)
6010
6010
  default: oops()
6011
6011
  } } }
6012
- helpers_pack__P81866.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
6012
+ helpers_pack__P81866.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
6013
6013
 
6014
6014
  function helpers_pack__P81866_mk(s) {
6015
6015
  checkStack(s.depth);
@@ -6181,7 +6181,7 @@ switch (step) {
6181
6181
  return leave(s, r0)
6182
6182
  default: oops()
6183
6183
  } } }
6184
- helpers_imageFillRect__P81871.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
6184
+ helpers_imageFillRect__P81871.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
6185
6185
 
6186
6186
  function helpers_imageFillRect__P81871_mk(s) {
6187
6187
  checkStack(s.depth);
@@ -15716,7 +15716,7 @@ switch (step) {
15716
15716
  return leave(s, r0)
15717
15717
  default: oops()
15718
15718
  } } }
15719
- helpers_imageDrawRect__P81874.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15719
+ helpers_imageDrawRect__P81874.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15720
15720
 
15721
15721
  function helpers_imageDrawRect__P81874_mk(s) {
15722
15722
  checkStack(s.depth);
@@ -15776,7 +15776,7 @@ switch (step) {
15776
15776
  return leave(s, r0)
15777
15777
  default: oops()
15778
15778
  } } }
15779
- helpers_imageDrawLine__P81873.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15779
+ helpers_imageDrawLine__P81873.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15780
15780
 
15781
15781
  function helpers_imageDrawLine__P81873_mk(s) {
15782
15782
  checkStack(s.depth);
@@ -21441,7 +21441,7 @@ switch (step) {
21441
21441
  return leave(s, r0)
21442
21442
  default: oops()
21443
21443
  } } }
21444
- helpers_setScreenBrightness__P81881.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
21444
+ helpers_setScreenBrightness__P81881.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
21445
21445
 
21446
21446
  function helpers_setScreenBrightness__P81881_mk(s) {
21447
21447
  checkStack(s.depth);
@@ -21512,7 +21512,7 @@ switch (step) {
21512
21512
  return leave(s, r0)
21513
21513
  default: oops()
21514
21514
  } } }
21515
- helpers_screenBrightness__P81882.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21515
+ helpers_screenBrightness__P81882.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21516
21516
 
21517
21517
  function helpers_screenBrightness__P81882_mk(s) {
21518
21518
  checkStack(s.depth);
@@ -34131,7 +34131,7 @@ switch (step) {
34131
34131
  return leave(s, r0)
34132
34132
  default: oops()
34133
34133
  } } }
34134
- helpers_imageBlit__P81868.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
34134
+ helpers_imageBlit__P81868.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
34135
34135
 
34136
34136
  function helpers_imageBlit__P81868_mk(s) {
34137
34137
  checkStack(s.depth);
@@ -4129,7 +4129,7 @@ switch (step) {
4129
4129
  return leave(s, r0)
4130
4130
  default: oops()
4131
4131
  } } }
4132
- helpers_imageDrawIcon__P141178.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4132
+ helpers_imageDrawIcon__P141178.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4133
4133
 
4134
4134
  function helpers_imageDrawIcon__P141178_mk(s) {
4135
4135
  checkStack(s.depth);
@@ -4192,7 +4192,7 @@ switch (step) {
4192
4192
  return leave(s, r0)
4193
4193
  default: oops()
4194
4194
  } } }
4195
- helpers_pack__P141174.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4195
+ helpers_pack__P141174.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4196
4196
 
4197
4197
  function helpers_pack__P141174_mk(s) {
4198
4198
  checkStack(s.depth);
@@ -4364,7 +4364,7 @@ switch (step) {
4364
4364
  return leave(s, r0)
4365
4365
  default: oops()
4366
4366
  } } }
4367
- helpers_imageFillRect__P141179.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4367
+ helpers_imageFillRect__P141179.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4368
4368
 
4369
4369
  function helpers_imageFillRect__P141179_mk(s) {
4370
4370
  checkStack(s.depth);
@@ -15211,7 +15211,7 @@ switch (step) {
15211
15211
  return leave(s, r0)
15212
15212
  default: oops()
15213
15213
  } } }
15214
- helpers_imageDrawRect__P141182.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15214
+ helpers_imageDrawRect__P141182.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15215
15215
 
15216
15216
  function helpers_imageDrawRect__P141182_mk(s) {
15217
15217
  checkStack(s.depth);
@@ -15271,7 +15271,7 @@ switch (step) {
15271
15271
  return leave(s, r0)
15272
15272
  default: oops()
15273
15273
  } } }
15274
- helpers_imageDrawLine__P141181.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15274
+ helpers_imageDrawLine__P141181.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15275
15275
 
15276
15276
  function helpers_imageDrawLine__P141181_mk(s) {
15277
15277
  checkStack(s.depth);
@@ -20936,7 +20936,7 @@ switch (step) {
20936
20936
  return leave(s, r0)
20937
20937
  default: oops()
20938
20938
  } } }
20939
- helpers_setScreenBrightness__P141189.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20939
+ helpers_setScreenBrightness__P141189.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20940
20940
 
20941
20941
  function helpers_setScreenBrightness__P141189_mk(s) {
20942
20942
  checkStack(s.depth);
@@ -21007,7 +21007,7 @@ switch (step) {
21007
21007
  return leave(s, r0)
21008
21008
  default: oops()
21009
21009
  } } }
21010
- helpers_screenBrightness__P141190.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21010
+ helpers_screenBrightness__P141190.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21011
21011
 
21012
21012
  function helpers_screenBrightness__P141190_mk(s) {
21013
21013
  checkStack(s.depth);
@@ -33626,7 +33626,7 @@ switch (step) {
33626
33626
  return leave(s, r0)
33627
33627
  default: oops()
33628
33628
  } } }
33629
- helpers_imageBlit__P141176.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33629
+ helpers_imageBlit__P141176.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33630
33630
 
33631
33631
  function helpers_imageBlit__P141176_mk(s) {
33632
33632
  checkStack(s.depth);
@@ -251,7 +251,7 @@ namespace sprites {
251
251
 
252
252
  if (sayLeft + width < 0 || sayTop + height < 0 || sayLeft > screen.width || sayTop > screen.height) return;
253
253
 
254
- SpriteSayRenderer.drawSayFrame(sayLeft, sayTop, width, height, owner.x, owner.y, this.bgColor, screen);
254
+ SpriteSayRenderer.drawSayFrame(sayLeft, sayTop, width, height, owner.x - ox, owner.y - oy, this.bgColor, screen);
255
255
 
256
256
  if (height) {
257
257
  if (this.animation) {
@@ -287,7 +287,6 @@ namespace sprites {
287
287
 
288
288
  // sets the default scroll speed in pixels per second
289
289
  let speed = 45;
290
- const currentScene = game.currentScene();
291
290
 
292
291
  // Calculates the speed of the scroll if scrolling is needed and a time is specified
293
292
  if (timeOnScreen && maxOffset > 0) {
@@ -298,7 +297,7 @@ namespace sprites {
298
297
  }
299
298
 
300
299
  if (timeOnScreen) {
301
- timeOnScreen = timeOnScreen + currentScene.millis();
300
+ timeOnScreen = timeOnScreen + game.runtime();
302
301
  }
303
302
 
304
303
  if (bubbleWidth > maxTextWidth + bubblePadding) {
@@ -328,7 +327,7 @@ namespace sprites {
328
327
  this.sayBubbleSprite.z = owner.z + 1;
329
328
 
330
329
  // Update box stuff as long as timeOnScreen doesn't exist or it can still be on the screen
331
- if (!timeOnScreen || timeOnScreen > currentScene.millis()) {
330
+ if (!timeOnScreen || timeOnScreen > game.runtime()) {
332
331
  // move bubble
333
332
  if (!owner.isOutOfScreen(camera)) {
334
333
  const ox = camera.offsetX;
@@ -396,7 +395,7 @@ namespace sprites {
396
395
  this.sayBubbleSprite = undefined;
397
396
  }
398
397
  }
399
- this.updateSay(0, currentScene.camera);
398
+ this.updateSay(0, game.currentScene().camera);
400
399
  }
401
400
 
402
401
  update(dt: number, camera: scene.Camera, owner: Sprite) {
@@ -406,7 +405,7 @@ namespace sprites {
406
405
 
407
406
  this.sayBubbleSprite.setFlag(SpriteFlag.RelativeToCamera, !!(owner.flags & SpriteFlag.RelativeToCamera));
408
407
 
409
- if (owner.flags && Flag.Destroyed) this.destroy();
408
+ if (owner.flags & Flag.Destroyed) this.destroy();
410
409
  }
411
410
 
412
411
  destroy() {
@@ -10286,7 +10286,7 @@ switch (step) {
10286
10286
  return leave(s, r0)
10287
10287
  default: oops()
10288
10288
  } } }
10289
- helpers_imageFillRect__P113525.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
10289
+ helpers_imageFillRect__P113525.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
10290
10290
 
10291
10291
  function helpers_imageFillRect__P113525_mk(s) {
10292
10292
  checkStack(s.depth);
@@ -10351,7 +10351,7 @@ switch (step) {
10351
10351
  return leave(s, r0)
10352
10352
  default: oops()
10353
10353
  } } }
10354
- helpers_pack__P113520.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
10354
+ helpers_pack__P113520.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
10355
10355
 
10356
10356
  function helpers_pack__P113520_mk(s) {
10357
10357
  checkStack(s.depth);
@@ -11164,7 +11164,7 @@ switch (step) {
11164
11164
  return leave(s, r0)
11165
11165
  default: oops()
11166
11166
  } } }
11167
- helpers_imageDrawIcon__P113524.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
11167
+ helpers_imageDrawIcon__P113524.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
11168
11168
 
11169
11169
  function helpers_imageDrawIcon__P113524_mk(s) {
11170
11170
  checkStack(s.depth);
@@ -24354,7 +24354,7 @@ switch (step) {
24354
24354
  return leave(s, r0)
24355
24355
  default: oops()
24356
24356
  } } }
24357
- helpers_imageDrawRect__P113528.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
24357
+ helpers_imageDrawRect__P113528.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
24358
24358
 
24359
24359
  function helpers_imageDrawRect__P113528_mk(s) {
24360
24360
  checkStack(s.depth);
@@ -24414,7 +24414,7 @@ switch (step) {
24414
24414
  return leave(s, r0)
24415
24415
  default: oops()
24416
24416
  } } }
24417
- helpers_imageDrawLine__P113527.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
24417
+ helpers_imageDrawLine__P113527.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
24418
24418
 
24419
24419
  function helpers_imageDrawLine__P113527_mk(s) {
24420
24420
  checkStack(s.depth);
@@ -31835,7 +31835,7 @@ switch (step) {
31835
31835
  return leave(s, r0)
31836
31836
  default: oops()
31837
31837
  } } }
31838
- helpers_setScreenBrightness__P113535.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
31838
+ helpers_setScreenBrightness__P113535.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
31839
31839
 
31840
31840
  function helpers_setScreenBrightness__P113535_mk(s) {
31841
31841
  checkStack(s.depth);
@@ -31906,7 +31906,7 @@ switch (step) {
31906
31906
  return leave(s, r0)
31907
31907
  default: oops()
31908
31908
  } } }
31909
- helpers_screenBrightness__P113536.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
31909
+ helpers_screenBrightness__P113536.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
31910
31910
 
31911
31911
  function helpers_screenBrightness__P113536_mk(s) {
31912
31912
  checkStack(s.depth);
@@ -43231,7 +43231,7 @@ switch (step) {
43231
43231
  return leave(s, r0)
43232
43232
  default: oops()
43233
43233
  } } }
43234
- helpers_imageBlit__P113522.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
43234
+ helpers_imageBlit__P113522.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
43235
43235
 
43236
43236
  function helpers_imageBlit__P113522_mk(s) {
43237
43237
  checkStack(s.depth);
@@ -4129,7 +4129,7 @@ switch (step) {
4129
4129
  return leave(s, r0)
4130
4130
  default: oops()
4131
4131
  } } }
4132
- helpers_imageDrawIcon__P173975.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4132
+ helpers_imageDrawIcon__P173975.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4133
4133
 
4134
4134
  function helpers_imageDrawIcon__P173975_mk(s) {
4135
4135
  checkStack(s.depth);
@@ -4192,7 +4192,7 @@ switch (step) {
4192
4192
  return leave(s, r0)
4193
4193
  default: oops()
4194
4194
  } } }
4195
- helpers_pack__P173971.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4195
+ helpers_pack__P173971.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4196
4196
 
4197
4197
  function helpers_pack__P173971_mk(s) {
4198
4198
  checkStack(s.depth);
@@ -4364,7 +4364,7 @@ switch (step) {
4364
4364
  return leave(s, r0)
4365
4365
  default: oops()
4366
4366
  } } }
4367
- helpers_imageFillRect__P173976.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4367
+ helpers_imageFillRect__P173976.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4368
4368
 
4369
4369
  function helpers_imageFillRect__P173976_mk(s) {
4370
4370
  checkStack(s.depth);
@@ -15211,7 +15211,7 @@ switch (step) {
15211
15211
  return leave(s, r0)
15212
15212
  default: oops()
15213
15213
  } } }
15214
- helpers_imageDrawRect__P173979.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15214
+ helpers_imageDrawRect__P173979.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15215
15215
 
15216
15216
  function helpers_imageDrawRect__P173979_mk(s) {
15217
15217
  checkStack(s.depth);
@@ -15271,7 +15271,7 @@ switch (step) {
15271
15271
  return leave(s, r0)
15272
15272
  default: oops()
15273
15273
  } } }
15274
- helpers_imageDrawLine__P173978.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15274
+ helpers_imageDrawLine__P173978.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15275
15275
 
15276
15276
  function helpers_imageDrawLine__P173978_mk(s) {
15277
15277
  checkStack(s.depth);
@@ -20936,7 +20936,7 @@ switch (step) {
20936
20936
  return leave(s, r0)
20937
20937
  default: oops()
20938
20938
  } } }
20939
- helpers_setScreenBrightness__P173986.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20939
+ helpers_setScreenBrightness__P173986.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20940
20940
 
20941
20941
  function helpers_setScreenBrightness__P173986_mk(s) {
20942
20942
  checkStack(s.depth);
@@ -21007,7 +21007,7 @@ switch (step) {
21007
21007
  return leave(s, r0)
21008
21008
  default: oops()
21009
21009
  } } }
21010
- helpers_screenBrightness__P173987.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21010
+ helpers_screenBrightness__P173987.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21011
21011
 
21012
21012
  function helpers_screenBrightness__P173987_mk(s) {
21013
21013
  checkStack(s.depth);
@@ -33626,7 +33626,7 @@ switch (step) {
33626
33626
  return leave(s, r0)
33627
33627
  default: oops()
33628
33628
  } } }
33629
- helpers_imageBlit__P173973.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33629
+ helpers_imageBlit__P173973.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33630
33630
 
33631
33631
  function helpers_imageBlit__P173973_mk(s) {
33632
33632
  checkStack(s.depth);
@@ -27,7 +27,7 @@
27
27
  "Image.mapRect": "Replace colors in a rectangle",
28
28
  "Image.overlapsWith": "Check if the current image \"collides\" with another",
29
29
  "Image.replace": "Replaces one color in an image with another",
30
- "Image.rotated": "Returns an image rotated by -90, 0, 90, 180, 270 deg clockwise",
30
+ "Image.rotated": "Returns an image rotated by -90, 90, -180, 180, -270, 270 deg clockwise",
31
31
  "Image.scroll": "Every pixel in image is moved by (dx,dy)",
32
32
  "Image.setPixel": "Set pixel color",
33
33
  "Image.setRows": "Copy row(s) of pixel from buffer to image.",
@@ -479,7 +479,7 @@ Image_ transposed(Image_ img) {
479
479
 
480
480
  // this is quite slow
481
481
  for (int i = 0; i < img->width(); ++i) {
482
- for (int j = 0; j < img->height(); ++i) {
482
+ for (int j = 0; j < img->height(); ++j) {
483
483
  setCore(r, j, i, getCore(img, i, j));
484
484
  }
485
485
  }
@@ -105,7 +105,7 @@ interface Image {
105
105
  fillPolygon4(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, col: number): void;
106
106
 
107
107
  /**
108
- * Returns an image rotated by -90, 0, 90, 180, 270 deg clockwise
108
+ * Returns an image rotated by -90, 90, -180, 180, -270, 270 deg clockwise
109
109
  */
110
110
  //% helper=imageRotated
111
111
  rotated(deg: number): Image;
@@ -293,7 +293,7 @@ namespace helpers {
293
293
  r.flipX();
294
294
  r.flipY();
295
295
  return r;
296
- } else if (deg == 90) {
296
+ } else if (deg == 90 || deg == -270) {
297
297
  let r = img.transposed();
298
298
  r.flipX();
299
299
  return r;
@@ -170,9 +170,9 @@ class WDisplay {
170
170
 
171
171
  // SER pin (or first bit of second HC) is orientation
172
172
  if (hc & 0x0010)
173
- *cfg0 = 0x80;
173
+ *cfg0 |= 0x80;
174
174
  else
175
- *cfg0 = 0x40;
175
+ *cfg0 |= 0x40;
176
176
 
177
177
  uint32_t configId = (hc & 0xe0) >> 5;
178
178
 
@@ -375,4 +375,4 @@ void updateStats(String msg) {
375
375
  // ignore...
376
376
  }
377
377
 
378
- } // namespace pxt
378
+ } // namespace pxt
@@ -4129,7 +4129,7 @@ switch (step) {
4129
4129
  return leave(s, r0)
4130
4130
  default: oops()
4131
4131
  } } }
4132
- helpers_imageDrawIcon__P195199.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4132
+ helpers_imageDrawIcon__P195199.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4133
4133
 
4134
4134
  function helpers_imageDrawIcon__P195199_mk(s) {
4135
4135
  checkStack(s.depth);
@@ -4192,7 +4192,7 @@ switch (step) {
4192
4192
  return leave(s, r0)
4193
4193
  default: oops()
4194
4194
  } } }
4195
- helpers_pack__P195195.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4195
+ helpers_pack__P195195.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4196
4196
 
4197
4197
  function helpers_pack__P195195_mk(s) {
4198
4198
  checkStack(s.depth);
@@ -4364,7 +4364,7 @@ switch (step) {
4364
4364
  return leave(s, r0)
4365
4365
  default: oops()
4366
4366
  } } }
4367
- helpers_imageFillRect__P195200.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4367
+ helpers_imageFillRect__P195200.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4368
4368
 
4369
4369
  function helpers_imageFillRect__P195200_mk(s) {
4370
4370
  checkStack(s.depth);
@@ -15211,7 +15211,7 @@ switch (step) {
15211
15211
  return leave(s, r0)
15212
15212
  default: oops()
15213
15213
  } } }
15214
- helpers_imageDrawRect__P195203.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15214
+ helpers_imageDrawRect__P195203.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15215
15215
 
15216
15216
  function helpers_imageDrawRect__P195203_mk(s) {
15217
15217
  checkStack(s.depth);
@@ -15271,7 +15271,7 @@ switch (step) {
15271
15271
  return leave(s, r0)
15272
15272
  default: oops()
15273
15273
  } } }
15274
- helpers_imageDrawLine__P195202.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15274
+ helpers_imageDrawLine__P195202.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15275
15275
 
15276
15276
  function helpers_imageDrawLine__P195202_mk(s) {
15277
15277
  checkStack(s.depth);
@@ -20936,7 +20936,7 @@ switch (step) {
20936
20936
  return leave(s, r0)
20937
20937
  default: oops()
20938
20938
  } } }
20939
- helpers_setScreenBrightness__P195210.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20939
+ helpers_setScreenBrightness__P195210.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20940
20940
 
20941
20941
  function helpers_setScreenBrightness__P195210_mk(s) {
20942
20942
  checkStack(s.depth);
@@ -21007,7 +21007,7 @@ switch (step) {
21007
21007
  return leave(s, r0)
21008
21008
  default: oops()
21009
21009
  } } }
21010
- helpers_screenBrightness__P195211.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21010
+ helpers_screenBrightness__P195211.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21011
21011
 
21012
21012
  function helpers_screenBrightness__P195211_mk(s) {
21013
21013
  checkStack(s.depth);
@@ -33626,7 +33626,7 @@ switch (step) {
33626
33626
  return leave(s, r0)
33627
33627
  default: oops()
33628
33628
  } } }
33629
- helpers_imageBlit__P195197.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33629
+ helpers_imageBlit__P195197.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33630
33630
 
33631
33631
  function helpers_imageBlit__P195197_mk(s) {
33632
33632
  checkStack(s.depth);
@@ -4129,7 +4129,7 @@ switch (step) {
4129
4129
  return leave(s, r0)
4130
4130
  default: oops()
4131
4131
  } } }
4132
- helpers_imageDrawIcon__P156639.info = {"start":5993,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4132
+ helpers_imageDrawIcon__P156639.info = {"start":6002,"length":145,"line":198,"column":4,"endLine":200,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
4133
4133
 
4134
4134
  function helpers_imageDrawIcon__P156639_mk(s) {
4135
4135
  checkStack(s.depth);
@@ -4192,7 +4192,7 @@ switch (step) {
4192
4192
  return leave(s, r0)
4193
4193
  default: oops()
4194
4194
  } } }
4195
- helpers_pack__P156635.info = {"start":4967,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4195
+ helpers_pack__P156635.info = {"start":4976,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
4196
4196
 
4197
4197
  function helpers_pack__P156635_mk(s) {
4198
4198
  checkStack(s.depth);
@@ -4364,7 +4364,7 @@ switch (step) {
4364
4364
  return leave(s, r0)
4365
4365
  default: oops()
4366
4366
  } } }
4367
- helpers_imageFillRect__P156640.info = {"start":6143,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4367
+ helpers_imageFillRect__P156640.info = {"start":6152,"length":159,"line":201,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
4368
4368
 
4369
4369
  function helpers_imageFillRect__P156640_mk(s) {
4370
4370
  checkStack(s.depth);
@@ -15211,7 +15211,7 @@ switch (step) {
15211
15211
  return leave(s, r0)
15212
15212
  default: oops()
15213
15213
  } } }
15214
- helpers_imageDrawRect__P156643.info = {"start":6634,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15214
+ helpers_imageDrawRect__P156643.info = {"start":6643,"length":370,"line":210,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
15215
15215
 
15216
15216
  function helpers_imageDrawRect__P156643_mk(s) {
15217
15217
  checkStack(s.depth);
@@ -15271,7 +15271,7 @@ switch (step) {
15271
15271
  return leave(s, r0)
15272
15272
  default: oops()
15273
15273
  } } }
15274
- helpers_imageDrawLine__P156642.info = {"start":6470,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15274
+ helpers_imageDrawLine__P156642.info = {"start":6479,"length":159,"line":207,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
15275
15275
 
15276
15276
  function helpers_imageDrawLine__P156642_mk(s) {
15277
15277
  checkStack(s.depth);
@@ -20936,7 +20936,7 @@ switch (step) {
20936
20936
  return leave(s, r0)
20937
20937
  default: oops()
20938
20938
  } } }
20939
- helpers_setScreenBrightness__P156650.info = {"start":9634,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20939
+ helpers_setScreenBrightness__P156650.info = {"start":9658,"length":210,"line":307,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
20940
20940
 
20941
20941
  function helpers_setScreenBrightness__P156650_mk(s) {
20942
20942
  checkStack(s.depth);
@@ -21007,7 +21007,7 @@ switch (step) {
21007
21007
  return leave(s, r0)
21008
21008
  default: oops()
21009
21009
  } } }
21010
- helpers_screenBrightness__P156651.info = {"start":9850,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21010
+ helpers_screenBrightness__P156651.info = {"start":9874,"length":98,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
21011
21011
 
21012
21012
  function helpers_screenBrightness__P156651_mk(s) {
21013
21013
  checkStack(s.depth);
@@ -33626,7 +33626,7 @@ switch (step) {
33626
33626
  return leave(s, r0)
33627
33627
  default: oops()
33628
33628
  } } }
33629
- helpers_imageBlit__P156637.info = {"start":5148,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33629
+ helpers_imageBlit__P156637.info = {"start":5157,"length":642,"line":179,"column":4,"endLine":192,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]}
33630
33630
 
33631
33631
  function helpers_imageBlit__P156637_mk(s) {
33632
33632
  checkStack(s.depth);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "12.2.5",
3
+ "version": "12.2.6",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",