Skip to content

Commit

Permalink
[win32] Fix for refreshing the background image
Browse files Browse the repository at this point in the history
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
  • Loading branch information
akoch-yatta authored and HeikoKlare committed Nov 7, 2024
1 parent e03196c commit 342688a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5810,7 +5810,7 @@ private static void handleDPIChange(Widget widget, int newZoom, float scalingFac
}
resizeFont(control, control.getShell().nativeZoom);

Image image = control.getBackgroundImage();
Image image = control.backgroundImage;
if (image != null) {
if (image.isDisposed()) {
control.setBackgroundImage(null);
Expand Down

0 comments on commit 342688a

Please sign in to comment.