Skip to content

Commit 3dcc0f5

Browse files
ShahzaibIbrahimmerks
authored andcommitted
Missing scrollbars in compare editor
Scrollbars are missing on non default screen scaling [Blocker for 4.33 M3 build]
1 parent 1984e06 commit 3dcc0f5

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ int getSystemMetrics(int nIndex) {
26692669
* DPI dependent metrics were introduced after 2016 version of windows 10
26702670
*/
26712671
if (OS.WIN32_BUILD >= OS.WIN32_BUILD_WIN10_1607) {
2672-
return OS.GetSystemMetricsForDpi(nIndex, DPIUtil.mapZoomToDPI(getZoom()));
2672+
return OS.GetSystemMetricsForDpi(nIndex, DPIUtil.mapZoomToDPI(nativeZoom));
26732673
}
26742674
return OS.GetSystemMetrics(nIndex);
26752675
}

0 commit comments

Comments
 (0)