Files
Manuel Unterhofer b53f5d4ab6 Make device scaling reactivity more reliable and fix layout glitch (#661)
…on Windows

First off, I don't think there was any need for the repeated checks for device pixel ratio changes via checkContentScale because we should be able to rely on the graphicsContextScaleTransform property from AWT.

I removed the corresponding code and changed contentScale to directly return the platform-specific implementations from the toolkit/device. There's also no need to cache the value because the device and the graphics configuration already does it for us.

Secondly, there was a layout glitch on Windows when moving windows between monitors with different device pixel ratios. A fix has to happen directly in the JBR, but for now I created a semi-cheap workaround. See this issue and the linked ones for details: https://youtrack.jetbrains.com/issue/JBR-5259/Canvas-is-painted-at-the-wrong-position-after-dragging-JFrame-to-a-monitor-with-different-scale
2023-02-23 13:39:44 +01:00
..
2022-01-18 08:20:40 +03:00
2022-01-18 08:20:40 +03:00
2022-01-18 08:20:40 +03:00
2023-01-12 18:24:14 +01:00
2022-01-18 08:20:40 +03:00
2022-01-18 08:20:40 +03:00
2022-01-18 08:20:40 +03:00