Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 465195

Summary: [GTK3] Device#getDPI() should use GTK 3.10 APIs to get resolution / display scale
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill, peter, sravankumarl
Version: 4.5Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Markus Keller CLA 2015-04-22 09:00:19 EDT
(In reply to Sravan Kumar Lakkimsetti from bug 399786 comment #14)
> since the native support for scaling is available only from GTK3.10 onwards,
> swt has a implementation for calculating dpi based on the monitor
> dimensions. This implementation is there in
> Display.getDpi()/Display.getScreenDpi() call. This API call is used for
> calculating dpi used to render the images.

The new APIs should be used if available.

System Settings > Displays > Scale for menu and title bars: 2

... should turn a regular monitor into a high-dpi monitor.
Comment 1 Eric Williams CLA 2018-04-11 11:13:36 EDT
Ping: Sravan is this ticket still relevant?
Comment 2 Alexander Kurtakov CLA 2018-10-19 09:13:05 EDT
Resolving this one as we fixed that in 4.9.