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

Aleksandr Veselov duke at openjdk.java.net
Fri Jan 14 17:37:34 UTC 2022


On Fri, 14 Jan 2022 17:31:09 GMT, Aleksandr Veselov <duke at openjdk.java.net> wrote:

>> Perform scaling while converting sizes and coordinates to provide correct positions of accessible elements on HiDPI screen and make hit-test work properly. It uses FontRenderContext to receive display scale without API changes.
>
> Aleksandr Veselov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix converting coordinates when getting GC at point
>   
>   Also move GraphicsConfiguration search into AccessibilityGraphicsEnvironment

I've fixed receiving GC at given point and now hit-test and frame bounds seem to be calculated correctly. But it looks like NVDA does not work correctly with HiDPI itself, to it (at least v. 2021.3.1) has to be started in compatibility mode, see the attached picture

![image](https://user-images.githubusercontent.com/3617329/149559638-97df15dd-6178-4f02-b210-2cd625936c50.png)

-------------

PR: https://git.openjdk.java.net/jdk18/pull/72



More information about the client-libs-dev mailing list