flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.69k stars 1.58k forks source link

Fix for aspect ratio losing ratio #3439

Open brunoais opened 9 months ago

brunoais commented 9 months ago

Fix for aspect ratio losing ratio (bad code version)

The reason why it's bad code is because I'm using a global variable for this purpose and that is a really bad idea. Unfortunately, I don't know where can this information be stored.

Please help: The part I'm missing is somewhere to store the float variable. Once I have a suitable place, this PR is complete.

Note: I'm not used to C++ code, this is my first time working with C++ code without prior help, please be patient.

Fixes #3436