--- old/src/share/native/sun/awt/splashscreen/splashscreen_impl.c 2014-06-18 16:34:08.000000000 +0400 +++ new/src/share/native/sun/awt/splashscreen/splashscreen_impl.c 2014-06-18 16:34:07.000000000 +0400 @@ -59,6 +59,7 @@ 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); @@ -101,6 +102,13 @@ SplashSetFileJarName(NULL, NULL); } +SPLASHEXPORT void +SplashSetScaleFactor(float scaleFactor) +{ + Splash *splash = SplashGetInstance(); + splash->scaleFactor = scaleFactor; +} + void SplashDone(Splash * splash) { @@ -365,7 +373,7 @@ static void closeMem(void* pStream) { } -int SplashStreamInitFile(SplashStream * pStream, const char* filename) { +int SplashStreamInitFile(SplashStream * pStream, const char* filename) { pStream->arg.stdio.f = fopen(filename, "rb"); pStream->read = readFile; pStream->peek = peekFile;