Skip to content

Commit 290019e

Browse files
akoch-yattaHeikoKlare
authored andcommitted
[win32] Init nativeZoom for taskbar
This commit initializes the nativeZoom attribute of the taskbar. As TaskBar is not calling a super constructor setting this attribute will be zero and can lead to issues with Images created with a zero zoom factor. contributes to #1742
1 parent a0a0485 commit 290019e

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public class TaskBar extends Widget {
6565

6666
TaskBar (Display display, int style) {
6767
this.display = display;
68+
this.nativeZoom = display.getDeviceZoom();
6869
createHandle ();
6970
reskinWidget ();
7071
}

0 commit comments

Comments
 (0)