src/share/native/sun/awt/splashscreen/splashscreen_impl.c

Print this page

        

@@ -57,10 +57,11 @@
 {
     Splash *splash = SplashGetInstance();
 
     memset(splash, 0, sizeof(Splash));
     splash->currentFrame = -1;
+    splash->scaleFactor = 1;
     initFormat(&splash->imageFormat, QUAD_RED_MASK, QUAD_GREEN_MASK,
         QUAD_BLUE_MASK, QUAD_ALPHA_MASK);
     SplashInitPlatform(splash);
 }
 

@@ -99,10 +100,17 @@
         splash->overlayData = NULL;
     }
     SplashSetFileJarName(NULL, NULL);
 }
 
+SPLASHEXPORT void
+SplashSetScaleFactor(float scaleFactor)
+{
+    Splash *splash = SplashGetInstance();
+    splash->scaleFactor = scaleFactor;
+}
+
 void
 SplashDone(Splash * splash)
 {
     SplashCleanup(splash);
     SplashDonePlatform(splash);