jdk/src/share/native/sun/awt/splashscreen/splashscreen_impl.c
changeset 25552 96abb01815f6
parent 22312 dd65107de257
equal deleted inserted replaced
25210:d2224e06e44f 25552:96abb01815f6
    57 {
    57 {
    58     Splash *splash = SplashGetInstance();
    58     Splash *splash = SplashGetInstance();
    59 
    59 
    60     memset(splash, 0, sizeof(Splash));
    60     memset(splash, 0, sizeof(Splash));
    61     splash->currentFrame = -1;
    61     splash->currentFrame = -1;
       
    62     splash->scaleFactor = 1;
    62     initFormat(&splash->imageFormat, QUAD_RED_MASK, QUAD_GREEN_MASK,
    63     initFormat(&splash->imageFormat, QUAD_RED_MASK, QUAD_GREEN_MASK,
    63         QUAD_BLUE_MASK, QUAD_ALPHA_MASK);
    64         QUAD_BLUE_MASK, QUAD_ALPHA_MASK);
    64     SplashInitPlatform(splash);
    65     SplashInitPlatform(splash);
    65 }
    66 }
    66 
    67 
    97     if (splash->overlayData) {
    98     if (splash->overlayData) {
    98         free(splash->overlayData);
    99         free(splash->overlayData);
    99         splash->overlayData = NULL;
   100         splash->overlayData = NULL;
   100     }
   101     }
   101     SplashSetFileJarName(NULL, NULL);
   102     SplashSetFileJarName(NULL, NULL);
       
   103 }
       
   104 
       
   105 SPLASHEXPORT void
       
   106 SplashSetScaleFactor(float scaleFactor)
       
   107 {
       
   108     Splash *splash = SplashGetInstance();
       
   109     splash->scaleFactor = scaleFactor;
   102 }
   110 }
   103 
   111 
   104 void
   112 void
   105 SplashDone(Splash * splash)
   113 SplashDone(Splash * splash)
   106 {
   114 {