Bug 1524 - NEWT High-DPI Soft-PixelScale on X11/Windows: Honor OS Scale-Factor at Creation + Change
Summary: NEWT High-DPI Soft-PixelScale on X11/Windows: Honor OS Scale-Factor at Creati...
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: core (show other bugs)
Version: 2.6.0
Hardware: All windows
: P4 normal
Assignee: Sven Gothel
URL:
Depends on: 1373
Blocks:
  Show dependency treegraph
 
Reported: 2025-08-22 04:10 CEST by Sven Gothel
Modified: 2025-08-24 04:27 CEST (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
fc47b0b9ea4c662246d0aee172a03e496d949b71 34c423ed8ade1d3b42cf31b034f9a789a0cdae98 224322e5eb5e26914dc635bd7aa1ec4afd393f05 48e5c3df585d7bf3a9adec00b812a4efb139992d
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2025-08-22 04:10:21 CEST
Bug 1373 introduced Soft-PixelScale for Windows and X11.

On Windows the Scale-Factor is not honored at window creation 
nor on change under NEWT.
Comment 1 Sven Gothel 2025-08-22 04:23:44 CEST
Resolved as described.
Comment 2 Sven Gothel 2025-08-22 04:31:59 CEST
On X11 the Scale-Factor is also not honored at window creation under NEWT.

Since the scale factor is retrieved via environment variables, see Bug 1373,
changing the scale factor is currently not supported.
Comment 3 Sven Gothel 2025-08-22 04:35:52 CEST
commit 34c423ed8ade1d3b42cf31b034f9a789a0cdae98
Bug 1524 - NEWT High-DPI Soft-PixelScale on X11: Honor OS Scale-Factor at Creation
Comment 4 Sven Gothel 2025-08-22 06:58:10 CEST
commit 224322e5eb5e26914dc635bd7aa1ec4afd393f05

    NewtCanvasSWT DPI Scale X11/Windows: We don't require pre-scaled size anymore
    
    Since fixing Bug 1373 and Bug 1524, X11 and Windows NEWT windows are created (and changed)
    with respect to the Soft-PixelScale factor.
Comment 5 Sven Gothel 2025-08-24 04:27:22 CEST
commit 48e5c3df585d7bf3a9adec00b812a4efb139992d

    Bug 1524 - NEWT High-DPI Soft-PixelScale: Fix NewtCanvasSWT regression
    
    Regression of commit 224322e5eb5e26914dc635bd7aa1ec4afd393f05
    NewtCanvasSWT.updatePosSizeCheck can only issue newtChild.setSurfaceScale()
    if newtChildReady.
    
    Further issue newtChild.setSurfaceScale() also
    in swt paint event if pending and always after newtChild.setSize().