On Tue, 8 Dec 2020 16:29:52 GMT, Jose Pereda <jper...@openjdk.org> wrote:
> This PR fixes a regression introduced in > [JDK-8199592](https://bugs.openjdk.java.net/browse/JDK-8199592), where scene > initialization was moved after updating output scales. However, in case of > embedded windows (used by `JFXPanel` or `FXCanvas`), the scene has to be > initialized before. > > A test has been included. Before applying the fix, the JFXPanel is rendered > with a garbled image, and after the fix, the rendering is correct. Looks good with one minor comment. tests/system/src/test/java/test/robot/javafx/embed/swing/JFXPanelHiDPITest.java line 166: > 164: } > 165: > 166: } Minor: missing newline at end of file ------------- Marked as reviewed by kcr (Lead). PR: https://git.openjdk.java.net/jfx/pull/364