Eclipse Photon messing up graphics [message #1791524] |
Sun, 01 July 2018 22:45 |
Jan Richter Messages: 2 Registered: July 2018 |
Junior Member |
|
|
Hello,
I was using Eclipse Oxygen for Java (installed via the eclipse.org/downloads installer) until a few days ago under Ubuntu 18.04. My desktop environment is i3 and eclipse worked out of the box just fine. However I got updated to Eclipse Photon at the start of an eclipse session and now the workspace is full of graphic issues (right window):
The left window is the output when started via cli.
I then removed eclipse and reinstalled Photon directly to rule out a broken update, but the issue remains (the above screenshot is from the reinstalled instance).
Sadly I have no idea how to debug this issue, so I wanted to ask for help here. Maybe Photon changed something about the DPI handling? I can still click on everything and for example the "File"-Menu button top left is far bigger than it is shown. So I thought it might be a DPI issue.
Any ideas?
[Updated on: Mon, 02 July 2018 07:06] Report message to a moderator
|
|
|
Re: Eclipse Photon messing up graphics [message #1791530 is a reply to message #1791524] |
Mon, 02 July 2018 06:44 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
As far as I understand, there are two system properties you could try that affect how/whether SWT scales for high DPI. The following is copied from the Javadoc in https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT/common/org/eclipse/swt/internal/DPIUtil.java
String org.eclipse.swt.internal.DPIUtil.SWT_AUTOSCALE : "swt.autoScale"
System property that controls the autoScale functionality.
•false: deviceZoom is set to 100%
•integer: deviceZoom depends on the current display resolution, but only uses integer multiples of 100%. The detected native zoom is generally rounded down (e.g. at 150%, will use 100%), unless close to the next integer multiple (currently at 175%, will use 200%).
•integer200: like integer, but the maximal zoom level is 200%.
•quarter: deviceZoom depends on the current display resolution, but only uses integer multiples of 25%. The detected native zoom is rounded to the closest permissible value.
•exact: deviceZoom uses the native zoom (with 1% as minimal step).
•<value>: deviceZoom uses the given integer value in percent as zoom level.
The current default is "integer200".
String DPIUtil.SWT_AUTOSCALE_METHOD : "swt.autoScale.method"
System property that controls the method for scaling images:
•"nearest": nearest-neighbor interpolation, may look jagged
•"smooth": smooth edges, may look blurry
The current default is to use "nearest", except on GTK when the deviceZoom is not an integer multiple of 100%. The smooth strategy currently doesn't work on Win32 and Cocoa, see bug 493455.
You'd specify such options in the -vm section (as a separate new line near the end) of your installation's eclipse.ini.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07441 seconds