diff --git a/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h b/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h index 697a8bd33d3..b9c2b4f3f65 100644 --- a/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h +++ b/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h @@ -26,7 +26,7 @@ #include #include -double getNativeScaleFactor(); +double getNativeScaleFactor(char *output_name); #endif diff --git a/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c b/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c index 11b979f4264..30739f03a4e 100644 --- a/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c +++ b/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c @@ -806,7 +806,7 @@ SplashGetScaledImageName(const char* jarName, const char* fileName, #ifndef __linux__ return JNI_FALSE; #endif - *scaleFactor = getNativeScaleFactor(); + *scaleFactor = getNativeScaleFactor(NULL); if (*scaleFactor == 2.0) { size_t length = 0; char *stringToAppend = ".java-scale2x";