Skip to content

Commit f30bf72

Browse files
committed
Fix blurry shell icon #62
Windows only: use the original width and height of the images set to the shell when searching for the best fit instead of adapting them to the zoom, otherwise the smallest image will always be picked and it will result in a blurry shell icon when scaling up for monitors with a higher zoom levels. contributes to #62 and #127
1 parent f7b5597 commit f30bf72

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ void setImages (Image image, Image [] images) {
899899
System.arraycopy (images, 0, bestImages, 0, images.length);
900900
datas = new ImageData [images.length];
901901
for (int i=0; i<datas.length; i++) {
902-
datas [i] = images [i].getImageData (getZoom());
902+
datas [i] = images [i].getImageData ();
903903
}
904904
images = bestImages;
905905
sort (images, datas, getSystemMetrics (OS.SM_CXSMICON), getSystemMetrics (OS.SM_CYSMICON), depth);

0 commit comments

Comments
 (0)