diff --git a/windows/src/main/cpp/Decorations.cpp b/windows/src/main/cpp/Decorations.cpp index a1adc3d7..ec508400 100644 --- a/windows/src/main/cpp/Decorations.cpp +++ b/windows/src/main/cpp/Decorations.cpp @@ -420,7 +420,7 @@ Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_setBackgrou JNIEXPORT jboolean JNICALL Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installDecorations(JNIEnv *env, jclass obj, jlong hwnd) { HWND handle = reinterpret_cast(hwnd); - return (jboolean) InstallDecorations(handle, false); + return static_cast(InstallDecorations(handle, false)); } JNIEXPORT void JNICALL @@ -437,7 +437,7 @@ Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_uninstallDe JNIEXPORT jboolean JNICALL Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_installPopupMenuDecorations(JNIEnv *env, jclass obj, jlong hwnd) { HWND handle = reinterpret_cast(hwnd); - return (jboolean) InstallDecorations(handle, true); + return static_cast(InstallDecorations(handle, true)); } //Window functions.