Skip to content

Commit 09a1869

Browse files
committed
set pixelWidth/Height/Density of vessel in AsyncImageLoader
1 parent d6f16ea commit 09a1869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3946,6 +3946,10 @@ public void run() {
39463946
vessel.pixels = actual.pixels;
39473947
// an android, pixels[] will probably be null, we want this one
39483948
vessel.bitmap = actual.bitmap;
3949+
3950+
vessel.pixelWidth = actual.width;
3951+
vessel.pixelHeight = actual.height;
3952+
vessel.pixelDensity = 1;
39493953
}
39503954
requestImageCount--;
39513955
}

0 commit comments

Comments
 (0)