Can't add screenshot function after updating zoom code.
Added code. I create a screenshot of the entire screen.

As you can see from the screenshot I am getting a cropped image.
But if...


A window opens with the suggested screen size of my laptop, I just click Ok...
The screenshot is being restored.
When you change the scale, the image disappears, you cannot undo the operation. The screenshot is lost, only the background of the alpha channel remains.
Before your changes to the zoom, these problems were not:
The actual code: https://github.com/ognjen-petrovic/EasyPaint/tree/screenshot
Can't add screenshot function after updating zoom code.

Added code. I create a screenshot of the entire screen.
As you can see from the screenshot I am getting a cropped image.


But if...
A window opens with the suggested screen size of my laptop, I just click Ok...
The screenshot is being restored.
When you change the scale, the image disappears, you cannot undo the operation. The screenshot is lost, only the background of the alpha channel remains.
Before your changes to the zoom, these problems were not:
The actual code: https://github.com/ognjen-petrovic/EasyPaint/tree/screenshot