From ea39b0e61de2ac5827bb738c0484eafbc5c6c9bf Mon Sep 17 00:00:00 2001 From: Amartya Parijat Date: Mon, 1 Sep 2025 15:56:57 +0200 Subject: [PATCH] Only redraw once after scaling every widget #62 This commit contributes to reducing the number of redraws and only draw once all the widgets have performed scaling using their Widget:handleDpiChange handlers. contributes to https://github.com/eclipse-platform/eclipse.platform.swt/issues/62 and https://github.com/eclipse-platform/eclipse.platform.swt/issues/128 --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 1 - 1 file changed, 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index 32c3bfc0f26..f84b567f338 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -1984,6 +1984,5 @@ private static void handleDPIChange(Widget widget, int newZoom, float scalingFac for (Control child : composite.getChildren()) { DPIZoomChangeRegistry.applyChange(child, newZoom, scalingFactor); } - composite.redrawInPixels (null, true); } }