src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 54401 3a217bbdd3a2
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    40 #include <langinfo.h>
    40 #include <langinfo.h>
    41 #include <locale.h>
    41 #include <locale.h>
    42 #include <fcntl.h>
    42 #include <fcntl.h>
    43 #include <poll.h>
    43 #include <poll.h>
    44 #include <sizecalc.h>
    44 #include <sizecalc.h>
       
    45 #include "jni.h"
    45 
    46 
    46 static Bool shapeSupported;
    47 static Bool shapeSupported;
    47 static int shapeEventBase, shapeErrorBase;
    48 static int shapeEventBase, shapeErrorBase;
    48 
    49 
    49 void SplashRemoveDecoration(Splash * splash);
    50 void SplashRemoveDecoration(Splash * splash);
   798 void
   799 void
   799 SplashReconfigure(Splash * splash) {
   800 SplashReconfigure(Splash * splash) {
   800     sendctl(splash, SPLASHCTL_RECONFIGURE);
   801     sendctl(splash, SPLASHCTL_RECONFIGURE);
   801 }
   802 }
   802 
   803 
   803 SPLASHEXPORT jboolean
   804 JNIEXPORT jboolean JNICALL
   804 SplashGetScaledImageName(const char* jarName, const char* fileName,
   805 SplashGetScaledImageName(const char* jarName, const char* fileName,
   805                            float *scaleFactor, char *scaledImgName,
   806                            float *scaleFactor, char *scaledImgName,
   806                            const size_t scaledImageNameLength)
   807                            const size_t scaledImageNameLength)
   807 {
   808 {
   808     *scaleFactor = 1;
   809     *scaleFactor = 1;