Skip to content

Commit b59e1d9

Browse files
arunjose696HannesWell
authored andcommitted
Remove autoscale upper limit to match SWT DPIUtil
The showSplash method was adapted in 3ba28b7 to bring the scaling logic back in sync with org.eclipse.swt.internal.DPIUtil. Previously, the upper limit for the autoscale value (200) was taken directly from SWT. However, following eclipse-platform/eclipse.platform.swt#111, the SWT.autoscale upper limit was removed. This change removes the upper limit here as well, ensuring the scaling logic remains consistent and the splash screen renders correctly across different DPI settings.
1 parent b9e1788 commit b59e1d9

File tree

1 file changed

+0
-3
lines changed
  • features/org.eclipse.equinox.executable.feature/library/win32

1 file changed

+0
-3
lines changed

features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,6 @@ int showSplash( const _TCHAR* featureImage )
326326
case AUTOSCALE_DEFAULT:
327327
case AUTOSCALE_INTEGER:
328328
dpiX = ((int)((dpiX + 24) / 96 )) * 96;
329-
if (autoScaleValue == AUTOSCALE_DEFAULT) {
330-
if (dpiX > 192) dpiX = 192;
331-
}
332329
break;
333330
default:
334331
dpiX = (96 * autoScaleValue + 50) / 100;

0 commit comments

Comments
 (0)