On Fri, 27 Jun 2025 15:14:23 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Also repaint when going to maximized > > modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java > line 110: > >> 108: float outScaleY = window.getOutputScaleY(); >> 109: stage.stageListener.changedScale(outScaleX, outScaleY); >> 110: forceRepaint(); > > (github diff is confusing, this code is for `WindowEvent.RESCALE` case) > > I suspect this might also fix an issue that I encountered in one of my > applications which uses Canvas-based text editor. After the macOS is woken > up after a sleep with an external monitor attached, the text on retina looked > blurred. I could not get a reproducer in time, but I think it was because > while I put it to sleep, the scene got re-rendered on the external monitor > going from scale 2 to scale 1, but when woken up, the scene was correctly > re-rendered for retina but the canvas was not resized, requiring it to be > scaled. > > I'll try to test this scenario, but it may take a few days. Sure, no hurry to integrate this ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1733#discussion_r2172796406