sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.16k stars 123 forks source link

Use scale factor from the window's list of entered outputs #307

Closed vially closed 1 year ago

vially commented 1 year ago

The previous logic was using the scale factor of the last received ouput scale event as the window's current scale factor which was incorrect (and non-deterministic). This pull-request attempts to fix that by using the largest scale factor of the window's list of entered outputs.

Note

There will be some follow-up pull-requests that will try to fix various issues related to HighDPI (and mixed-DPI) support.

I agree to delegate all rights related to this PR to Sony.