[jdk18] RFR: 8279227: Access Bridge: Wrong frame position and hit test result on HiDPI display [v2]

Sergey Bylokhov serb at openjdk.java.net
Sat Dec 25 03:57:16 UTC 2021


On Fri, 24 Dec 2021 23:57:51 GMT, Sergey Bylokhov <serb at 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



More information about the client-libs-dev mailing list