8163408: Fix wrong prototype of getNativeScaleFactor() in systemScale.h
authorsimonis
Wed, 10 Aug 2016 17:55:08 +0200
changeset 40257 87b7b4c3306f
parent 40256 c5e03eaf7ba2
child 40258 e6ba2e5c7a29
8163408: Fix wrong prototype of getNativeScaleFactor() in systemScale.h Reviewed-by: serb
jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h
jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c
--- a/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h	Wed Aug 10 13:54:38 2016 +0200
+++ b/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h	Wed Aug 10 17:55:08 2016 +0200
@@ -26,7 +26,7 @@
 #include <signal.h>
 #include <stdlib.h>
 
-double getNativeScaleFactor();
+double getNativeScaleFactor(char *output_name);
 
 #endif
 
--- a/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c	Wed Aug 10 13:54:38 2016 +0200
+++ b/jdk/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c	Wed Aug 10 17:55:08 2016 +0200
@@ -806,7 +806,7 @@
 #ifndef __linux__
     return JNI_FALSE;
 #endif
-    *scaleFactor = getNativeScaleFactor();
+    *scaleFactor = getNativeScaleFactor(NULL);
     if (*scaleFactor == 2.0) {
         size_t length = 0;
         char *stringToAppend = ".java-scale2x";