Bug 558837

Summary: Text and icons blurry on DPI scaled monitor
Product: [Eclipse Project] Platform Reporter: David Balažic <xerces9>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: david.balazic, nikita
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
screenshot of problem, on monitor #2
none
Screenshot of workaround
none
Screenshot of workaround
none
Screenshot of workaround #2
none
Screenshot of workaround #2 none

Description David Balažic CLA 2020-01-06 09:17:01 EST
Created attachment 281382 [details]
screenshot of problem, on monitor #2

I have Window 10 , version 1909.

Eclipse IDE for Enterprise Java Developers.

Version: 2019-09 R (4.13.0)
Build id: 20190917-1200


My monitors are:
1: 1920x1080 , scaling: 150%
2: 2560x1440 , scaling: 125%
3: 1920x1200 , scaling: 100% (this one is marked as "main display")

When I put Eclipse on the biggest monitor (#2), then almost everything in it is blurry. See screenshot.
It is similar on monitor #1. On the monitor #3 it seems OK.


Keywords: DPI,scaling,blurry,text
Comment 1 David Balažic CLA 2020-01-06 14:09:00 EST
Created attachment 281387 [details]
Screenshot of workaround

There is a workaround that makes the UI less blurry (but still a bit blurry):

 - open the Properties dialog of eclipse.exe
 - go to tab Compatibility
 - click the button "Change high DPI settings"
 - in the new dialog select at the bottom the option "Override high DPI scaling behavior."
 - for the "Scaling performed by:" select "System (Enhanced)"

The start eclipse.exe, now it is less blurry, see screenshot.
Comment 2 David Balažic CLA 2020-01-06 14:25:33 EST
Created attachment 281388 [details]
Screenshot of workaround

Proper screenshot.
Comment 3 Eclipse Webmaster CLA 2020-01-06 14:38:06 EST
The content of attachment 281387 [details] has been deleted for the following reason:

User request
Comment 4 Nikita Nemkin CLA 2020-01-07 05:29:00 EST
FWIW, this is a known issue. SWT doesn't support per-monitor DPI (yet), at least not on Windows.

This means that SWT uses primary monitor DPI for everything and the system autoscales SWT windows on secondary monitors, resulting in magnification blur.

Unfortunately, fixing this is rather involved.

Alternative partial workaround is to use the highest DPI monitor as the primary monitor.
Comment 5 David Balažic CLA 2020-01-07 08:51:05 EST
Created attachment 281395 [details]
Screenshot of workaround #2

Setting the monitor 2 as main display makes Eclipse look much better (when on monitor 2, on other it is again blurry). This is with reverting the eclipse.exe properties settings to default.
Comment 6 David Balažic CLA 2020-01-07 09:24:31 EST
Created attachment 281396 [details]
Screenshot of workaround #2

Fixed screenshot
Comment 7 Eclipse Webmaster CLA 2020-01-07 15:14:08 EST
The content of attachment 281395 [details] has been deleted for the following reason:

user request
Comment 8 David Balažic CLA 2020-03-04 09:05:52 EST
(In reply to Nikita Nemkin from comment #4)
> FWIW, this is a known issue. SWT doesn't support per-monitor DPI (yet), at
> least not on Windows.

Is there a bug open for this?