desktop_window
desktop_window copied to clipboard
Set size with scaling
When using this on a Windows PC (maybe also macOS) setWindowSize, setMinWindowSize and setMaxWindowSize sets the actual pixel resolution. If the PC has a high resolution screen and Scale is set to typical 200% the windows is set to half the size compared if Scale was set to 100%.
Would be nice with one or both of these options:
- setWindowSize, setMinWindowSize and setMaxWindowSize gets a bool parameter "withScale" which multiplies the entered resolution with the scale factor. 1920x1080 with scale 250% will result in 4800x2700
- add a getScale, which return the Scale, so we can use it ourself