On Fri, 24 Dec 2021 23:57:51 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Aleksandr Veselov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix missing import > > src/jdk.accessibility/windows/classes/com/sun/java/accessibility/internal/AccessBridge.java > line 1617: > >> 1615: r.width = (int) Math.ceil(r.width >> * at.getScaleX()); >> 1616: r.height = (int) >> Math.ceil(r.height * at.getScaleY()); >> 1617: } > > This logic will not work on the multiscreen configs when the monitors have > different DPI, the logic should be similar to the > SunGraphicsEnvironment.toDeviceSpace(). > and probably the round logic should use Region.clipRound as well. If this data will be used in native then we can try to use device->ScaleDownAbsX/Y, etc methods. ------------- PR: https://git.openjdk.java.net/jdk18/pull/72