Bug 562468

Summary: [HiDPI][Linux] TreeViewer and TableViewer with ILabelProvider has blurred icons [scale 200%]
Product: [Eclipse Project] Platform Reporter: Serhiy Davydiuk <s.davyduik>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: CentOS   
Whiteboard:
Attachments:
Description Flags
RCP application
none
linux screen
none
windows screen
none
Open perspective dialog
none
Plug-ins view none

Description Serhiy Davydiuk CLA 2020-04-24 10:24:41 EDT
Created attachment 282552 [details]
RCP application

Working on UHD monitor i'm observing blurred icons for the TreeViewer that uses LabelProvider. It works fine with StyledLabelProvider. The issue appears on Linux only (CentOS, gtk 3.22.30), everything is fine on Windows. Please see screens and code. Thanks
Comment 1 Serhiy Davydiuk CLA 2020-04-24 10:25:23 EDT
Created attachment 282553 [details]
linux screen
Comment 2 Serhiy Davydiuk CLA 2020-04-24 10:25:53 EDT
Created attachment 282554 [details]
windows screen
Comment 3 Serhiy Davydiuk CLA 2020-04-24 10:29:59 EDT
(In reply to Serhiy Davydiuk from comment #0)
> Created attachment 282552 [details]
> RCP application
> 
> Working on UHD monitor i'm observing blurred icons for the TreeViewer that
> uses LabelProvider. It works fine with StyledLabelProvider. The issue
> appears on Linux only (CentOS, gtk 3.22.30), everything is fine on Windows.
> Please see screens and code. Thanks

* StyledCellLabelProvider
Comment 4 Serhiy Davydiuk CLA 2020-05-19 13:50:29 EDT
The same problem exists when using CellLabelProvider also. It is easy to reproduce within Eclipse IDE (PluginsLabelProvider, PerspectiveLabelProvider, etc.)
Comment 5 Serhiy Davydiuk CLA 2020-05-19 13:51:34 EDT
Created attachment 282942 [details]
Open perspective dialog
Comment 6 Serhiy Davydiuk CLA 2020-05-19 13:52:21 EDT
Created attachment 282943 [details]
Plug-ins view
Comment 7 Serhiy Davydiuk CLA 2020-05-28 07:40:16 EDT
Seems this defect is related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=534422. <br>
It is not reproducible with StyledLabelProvider because it uses paintEvent and gc.drawImage to draw treeItem image.
In our case menu items, tree items and table items are blurred on scale 200. All these items use similar draw mechanism and use GDK.gdk_pixbuf_scale_simple