Skip to content

Commit 00106b4

Browse files
ShahzaibIbrahimfedejeanne
authored andcommitted
Reset device zoom to 100 in ResetMonitorSpecificScalingExtension
Disposing the display alone is insufficient, as some tests do not create a new display and continue to use the previously set device zoom when calling DPIUtil.getDeviceZoom. This change ensures that device zoom is explicitly reset to 100 after each test, preventing unintended side effects from lingering zoom values across tests.
1 parent 7882209 commit 00106b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT Tests/win32/org/eclipse/swt/internal/ResetMonitorSpecificScalingExtension.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public void beforeEach(ExtensionContext context) throws Exception {
3333
public void afterEach(ExtensionContext context) throws Exception {
3434
Win32DPIUtils.setMonitorSpecificScaling(wasMonitorSpecificScalingActive);
3535
Display.getDefault().dispose();
36+
DPIUtil.setDeviceZoom(100);
3637
}
3738

3839
}

0 commit comments

Comments
 (0)