You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the snapshotArea function and providing a non-integer size, it will either create a distorted snapshot or an empty snapshot. The size of the snapshot image will be the truncated value of the size provided regardless.
I suggest that either the value should be truncated or this can be documented.
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
When using the snapshotArea function and providing a non-integer size, it will either create a distorted snapshot or an empty snapshot. The size of the snapshot image will be the truncated value of the size provided regardless.
I suggest that either the value should be truncated or this can be documented.
Example Test Code
https://labs.phaser.io/edit.html?src=src/snapshot/snapshot%20area.js&v=3.55.2
Change width and height parameter to for example 128.5 or 128.12345.
Additional Information
This may be something that could be patched upstream as well.
The text was updated successfully, but these errors were encountered: