While testing DPI scaling with two monitors on Windows 11, one running at 4k (150% scaling) and the other at 2k (100% scaling) and both being 32", I noticed that the window size is 50% larger on the 4k one, which should be physically the same size.
And the conversion is also "lossy" because when moving the window between both monitors it's getting larger by one pixel
// new_dpi_x, new_scale_factor
144 1 1.5
PhysicalSize { width: 1208, height: 920 } PhysicalSize { width: 1812, height: 1380 }
96 1.5 1
PhysicalSize { width: 1201, height: 901 } PhysicalSize { width: 801, height: 601 }
144 1 1.5
PhysicalSize { width: 1210, height: 921 } PhysicalSize { width: 1815, height: 1382 }
96 1.5 1
PhysicalSize { width: 1203, height: 903 } PhysicalSize { width: 802, height: 602 }
144 1 1.5
PhysicalSize { width: 1211, height: 923 } PhysicalSize { width: 1817, height: 1385 }
96 1.5 1
It seems that both monitors are using 4k logical resolution, but I assume that's Windows 11?
While testing DPI scaling with two monitors on Windows 11, one running at 4k (150% scaling) and the other at 2k (100% scaling) and both being 32", I noticed that the window size is 50% larger on the 4k one, which should be physically the same size.
And the conversion is also "lossy" because when moving the window between both monitors it's getting larger by one pixel
It seems that both monitors are using 4k logical resolution, but I assume that's Windows 11?