|Re: Eclipse Photon messing up graphics [message #1791530 is a reply to message #1791524]
||Mon, 02 July 2018 06:44
| Ed Merks
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.03495 seconds