changeset 17390:3f523e22d151

8163408: Fix wrong prototype of getNativeScaleFactor() in systemScale.h Reviewed-by: serb
author simonis
date Wed, 10 Aug 2016 17:55:08 +0200
parents 7b894239a5c2
children 7f2dd75d0299
files src/java.desktop/unix/native/common/awt/systemscale/systemScale.h src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/unix/native/common/awt/systemscale/systemScale.h	Wed Aug 10 13:54:38 2016 +0200
+++ b/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/src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c	Wed Aug 10 13:54:38 2016 +0200
+++ b/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";