Skip to content

Commit 342688a

Browse files
akoch-yattaHeikoKlare
authored andcommitted
[win32] Fix for refreshing the background image
This commit adapts the refreshing of a background image of a control on a DPI change. This must only be done, if the image was set directly on the control. Contributes to #62
1 parent e03196c commit 342688a

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/Control.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5810,7 +5810,7 @@ private static void handleDPIChange(Widget widget, int newZoom, float scalingFac
58105810
}
58115811
resizeFont(control, control.getShell().nativeZoom);
58125812

5813-
Image image = control.getBackgroundImage();
5813+
Image image = control.backgroundImage;
58145814
if (image != null) {
58155815
if (image.isDisposed()) {
58165816
control.setBackgroundImage(null);

0 commit comments

Comments
 (0)