Files
oak-gpui/crates
张小白 086f4e63c5 windows: Properly handle DPI (#9456)
As I mentioned before, there are the following issues with how GPUI
handles scale factors greater than 1.0:
1. The title bar buttons do not function correctly, with minimizing
button performing maximization and maximizing button performing closure.
2. As discussed in #8809, setting a scale factor greater than 1.0 causes
GPUI's drawing content to be pushed off the screen.

This PR introduces `LogicalSize` and `PhysicalSize` to differentiate
between coordinate systems for proper GPUI rendering, and now scale
factors above 1.5 are working correctly.

`Zed` with a scale factor equals 1.5, and change between different scale
factors:



https://github.com/zed-industries/zed/assets/14981363/3348536d-8bd3-41dd-82f6-052723312a5b



Release Notes:

- N/A
2024-03-19 12:39:36 -07:00
..
2024-03-19 10:06:01 -06:00
2024-03-18 14:27:39 -07:00
2024-03-19 12:39:36 -07:00
2024-03-11 10:45:57 +01:00
2024-03-19 10:13:10 -07:00
2024-03-11 10:45:57 +01:00
2024-03-19 10:06:01 -06:00
2024-03-19 10:06:01 -06:00
2024-03-11 13:28:10 +01:00
2024-03-14 17:05:07 -04:00
2024-03-07 13:52:50 -07:00
2024-03-19 10:13:10 -07:00