src/java.desktop/share/native/libsplashscreen/splashscreen_impl.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
    32 # endif
    32 # endif
    33 #endif
    33 #endif
    34 int splashIsVisible = 0;
    34 int splashIsVisible = 0;
    35 
    35 
    36 Splash *
    36 Splash *
    37 SplashGetInstance()
    37 SplashGetInstance(void)
    38 {
    38 {
    39     static Splash splash;
    39     static Splash splash;
    40     static int preInitialized = 0;
    40     static int preInitialized = 0;
    41     if (!preInitialized) {
    41     if (!preInitialized) {
    42         memset(&splash, 0, sizeof(Splash));
    42         memset(&splash, 0, sizeof(Splash));
    56     free(splash->jarName);
    56     free(splash->jarName);
    57     splash->jarName = SplashConvertStringAlloc(jarName, &splash->jarNameLen);
    57     splash->jarName = SplashConvertStringAlloc(jarName, &splash->jarNameLen);
    58 }
    58 }
    59 
    59 
    60 SPLASHEXPORT void
    60 SPLASHEXPORT void
    61 SplashInit()
    61 SplashInit(void)
    62 {
    62 {
    63     Splash *splash = SplashGetInstance();
    63     Splash *splash = SplashGetInstance();
    64 
    64 
    65     memset(splash, 0, sizeof(Splash));
    65     memset(splash, 0, sizeof(Splash));
    66     splash->currentFrame = -1;
    66     splash->currentFrame = -1;
    69         QUAD_BLUE_MASK, QUAD_ALPHA_MASK);
    69         QUAD_BLUE_MASK, QUAD_ALPHA_MASK);
    70     SplashInitPlatform(splash);
    70     SplashInitPlatform(splash);
    71 }
    71 }
    72 
    72 
    73 SPLASHEXPORT void
    73 SPLASHEXPORT void
    74 SplashClose()
    74 SplashClose(void)
    75 {
    75 {
    76     Splash *splash = SplashGetInstance();
    76     Splash *splash = SplashGetInstance();
    77 
    77 
    78     if (splash->isVisible > 0) {
    78     if (splash->isVisible > 0) {
    79         SplashLock(splash);
    79         SplashLock(splash);