|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2000, 2024 IBM Corporation and others. |
| 2 | + * Copyright (c) 2000, 2025 IBM Corporation and others. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials |
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0 |
@@ -124,6 +124,22 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(AdjustWindowRectEx) |
124 | 124 | } |
125 | 125 | #endif |
126 | 126 |
|
| 127 | +#ifndef NO_AdjustWindowRectExForDpi |
| 128 | +JNIEXPORT jboolean JNICALL OS_NATIVE(AdjustWindowRectExForDpi) |
| 129 | + (JNIEnv *env, jclass that, jobject arg0, jint arg1, jboolean arg2, jint arg3, jint arg4) |
| 130 | +{ |
| 131 | + RECT _arg0, *lparg0=NULL; |
| 132 | + jboolean rc = 0; |
| 133 | + OS_NATIVE_ENTER(env, that, AdjustWindowRectExForDpi_FUNC); |
| 134 | + if (arg0) if ((lparg0 = getRECTFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 135 | + rc = (jboolean)AdjustWindowRectExForDpi(lparg0, arg1, arg2, arg3, arg4); |
| 136 | +fail: |
| 137 | + if (arg0 && lparg0) setRECTFields(env, arg0, lparg0); |
| 138 | + OS_NATIVE_EXIT(env, that, AdjustWindowRectExForDpi_FUNC); |
| 139 | + return rc; |
| 140 | +} |
| 141 | +#endif |
| 142 | + |
127 | 143 | #ifndef NO_AllowSetForegroundWindow |
128 | 144 | JNIEXPORT jboolean JNICALL OS_NATIVE(AllowSetForegroundWindow) |
129 | 145 | (JNIEnv *env, jclass that, jint arg0) |
|
0 commit comments