Closed mbooth101 closed 2 years ago
Hmm, I have a change that fixes the problem, but I'm not sure why and rather suspect in some other places the incorrectness was being worked around so this caused some visual glitches in other places, still investigating.
Edit: I think I got it, see PR #446
Describe the bug
Running on Linux, with a HiDPI screen, with a scaling factor of 2, with smooth anti-aliasing enabled, my application exits with the following error:
To Reproduce
Either use a HiDPI environment with the scaling factor set to 2 (200%) or set
GDK_SCALE=2
in the environment.When running the following snippet, pass the system property
-Dswt.autoScale.method=smooth
Run the following snippet, where "gear_icon1.png" is some 16x16 icon, e.g.:
Screenshots
-Dswt.autoScale.method=smooth
(see stack trace above)
Expected behavior
No crash, the icon should be antialiased when scaled up 2x, similar to the Windows 10 screenshot above.
Environment:
Select the platform(s) on which the behavior is seen:
Fedora 36 GTK version: gtk3-3.24.34-1.fc36.x86_64 Java version: java-17-openjdk-17.0.4.1.1-1.fc36.x86_64 SWT version: git commit 6c09b67 (15th Oct 2022)
Version since
Unknown
Workaround (or) Additional context
Workaround is don't enable smooth antialiasing :-)