Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ typedef enum {
SetPixel_FUNC,
SetPolyFillMode_FUNC,
SetPreferredAppMode_FUNC,
SetProcessDPIAware_FUNC,
SetProp_FUNC,
SetROP2_FUNC,
SetRect_FUNC,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
Expand Down
Loading