Bug 558837 - Text and icons blurry on DPI scaled monitor
Summary: Text and icons blurry on DPI scaled monitor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.13   Edit
Hardware: PC Windows 10
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-06 09:17 EST by David Balažic CLA
Modified: 2020-03-04 09:05 EST (History)
2 users (show)

See Also:


Attachments
screenshot of problem, on monitor #2 (307.48 KB, image/png)
2020-01-06 09:17 EST, David Balažic CLA
no flags Details
Screenshot of workaround (deleted)
2020-01-06 14:09 EST, David Balažic CLA
no flags Details
Screenshot of workaround (336.74 KB, image/png)
2020-01-06 14:25 EST, David Balažic CLA
no flags Details
Screenshot of workaround #2 (deleted)
2020-01-07 08:51 EST, David Balažic CLA
no flags Details
Screenshot of workaround #2 (112.23 KB, image/png)
2020-01-07 09:24 EST, David Balažic CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?