RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v3]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Jul 10 06:52:15 UTC 2023


On Fri, 7 Jul 2023 17:18:10 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> When the JavaFX scene is set before it is really shown, then the scale factors are not properly propagated to the EmbeddedWindow, resulting in showing wrong scales.
>> Fix is made to update scales to EmbeddedWindow
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Set stage scale in FX thread

> are you saying that it should show 200% even for the window that gets shown on the secondary (scale=1)? even though the test code does listen to the changes on the right scene instance
> 
> ```
>         scene.windowProperty().addListener((ob, oldWindow, newWindow) -> {
>             newWindow.renderScaleXProperty().addListener((obs, oldValue, newValue) -> updateText(label, newValue));
>             updateText(label, newWindow.getRenderScaleX());
>         });
> ```
> 
> ?
> 
> also, the poorly rendered text with the fix - does it mean this PR needs more work?
> 
> here is the comparison between the master and the fix, using the window that appears on the secondary:
> 
> ![Screenshot 2023-07-07 at 11 43 49](https://user-images.githubusercontent.com/107069028/251831932-8db3f763-810c-4b46-9928-3b0fd3fd78ad.png)

Fix to get correct scale in secondary monitor...Poorly rendered text on secondary is tracked in JDK-8222209

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

PR Comment: https://git.openjdk.org/jfx/pull/1171#issuecomment-1628341775


More information about the openjfx-dev mailing list