diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c index 0f8d6efc34f..af6ce424220 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c @@ -8811,18 +8811,6 @@ JNIEXPORT jint JNICALL OS_NATIVE(SetPolyFillMode) } #endif -#ifndef NO_SetProcessDPIAware -JNIEXPORT jboolean JNICALL OS_NATIVE(SetProcessDPIAware) - (JNIEnv *env, jclass that) -{ - jboolean rc = 0; - OS_NATIVE_ENTER(env, that, SetProcessDPIAware_FUNC); - rc = (jboolean)SetProcessDPIAware(); - OS_NATIVE_EXIT(env, that, SetProcessDPIAware_FUNC); - return rc; -} -#endif - #ifndef NO_SetProp JNIEXPORT jboolean JNICALL OS_NATIVE(SetProp) (JNIEnv *env, jclass that, jlong arg0, jlong arg1, jlong arg2) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_stats.h index b9e62062010..5c0a094fd6b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_stats.h @@ -657,7 +657,6 @@ typedef enum { SetPixel_FUNC, SetPolyFillMode_FUNC, SetPreferredAppMode_FUNC, - SetProcessDPIAware_FUNC, SetProp_FUNC, SetROP2_FUNC, SetRect_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java index debdd67e2f0..be4b31c7c1b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java @@ -59,9 +59,6 @@ public class OS extends C { */ } - /* Make the process DPI aware for Windows Vista */ - OS.SetProcessDPIAware (); - /* Get the DBCS flag */ IsDBLocale = OS.GetSystemMetrics (SM_IMMENABLED) != 0; } @@ -4369,7 +4366,6 @@ public static int HRESULT_FROM_WIN32(int x) { public static final native int SetPixel (long hdc, int X, int Y, int crColor); /** @param hdc cast=(HDC) */ public static final native int SetPolyFillMode (long hdc, int iPolyFillMode); -public static final native boolean SetProcessDPIAware (); /** * @method flags=dynamic * @param dpiContext cast=(DPI_AWARENESS_CONTEXT)