RFR: 8234471: Canvas in webview displayed with wrong scale on Windows

Kevin Rushforth kcr at openjdk.java.net
Tue Mar 24 00:02:30 UTC 2020


On Mon, 6 Jan 2020 04:42:54 GMT, Guru Hb <ghb 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>.

This looks like the correct fix, and I can confirm that it does fix the problem. I'll run a set of regression tests on
Windows 10 with 125% scaling (which is my normal environment) and then finish my review.

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

PR: https://git.openjdk.java.net/jfx/pull/62


More information about the openjfx-dev mailing list