RFR: 8234471: Canvas in webview displayed with wrong scale on Windows
Guru Hb
ghb at openjdk.java.net
Mon Jan 6 04:43:04 UTC 2020
On Mon, 9 Dec 2019 13:09:04 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:
> This bug can be reproduced when the screen resolution is at 125%, 150% and 175% for Windows, which correpsonds to `pixelScale` values of 1.25, 1.5 and 1.75, respectively.
>
> Issue: The rectangle inside canvas is rendered on `pixelScale` while the borders are rendered on `Math.ceil(pixelScale)`
>
> Fix: Use `Math.ceil(pixelScale)` for calculating `pixelScaleTransform`
have you tested this on Linux and Mac by changing JVM option -Dglass.win.uiScale=<Scale value>.
-------------
PR: https://git.openjdk.java.net/jfx/pull/62
More information about the openjfx-dev
mailing list