Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scale requestGrabWindow()'s image to fit size of window grab
grabbedFrame.image is sized according to display scaling, but the contents of the image itself remain at their original, non-scaled, resolution. There's a slim chance that the image is scaled to fit the scaled canvas, and the quickinspectortest passes. Most of the times, however, the image won't be scaled to fit the canvas. In this change we manually scale the image according to devicePixelRatio to fit the image's canvas. This allows the test to pass while keeping it unmodified.
- Loading branch information