catch sub-pixel sized thumbnails

pull/89/head
jmoenig 2019-11-15 15:34:38 +01:00
rodzic faae55d5b1
commit 556fbdd2a4
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -8,10 +8,12 @@
* disabled direct editing of list watchers for non-literal typed lists (such as costumes) in speech bubbles and prompters
* now preserving the sprite's rotation point when taking a video-snap on it
* now preventing costumes from becoming "broken" when pasting video snaps on them while the camera is not yet fully initialized
* now catching sub-pixel sized thumbnails
* **Translation Updates:**
### 2019-11-15
* objects: prevent costumes from becoming "broken" when pasting video snaps on them while the camera is not yet fully initialized
* objects: catch sub-pixel sized thumbnails
### 2019-11-14
* lists: disabled direct editing of list watchers for non-literal typed lists (such as costumes) in speech bubbles and prompters

Wyświetl plik

@ -6954,7 +6954,7 @@ SpriteMorph.prototype.thumbnail = function (extentPoint) {
if (this.isCorpse) {
ctx.globalAlpha = 0.3;
}
if (w && h) {
if (w && h && src.width && src.height) {
ctx.scale(scale, scale);
ctx.drawImage(
src,