open Udiff src/java.desktop/share/native/libsplashscreen/splashscreen_impl.c (original) (raw)

< prev index next >

Print this page


@@ -1,7 +1,7 @@ /*


@@ -44,22 +44,22 @@ preInitialized = 1; } return &splash; }

-SPLASHEXPORT void +JNIEXPORT void JNICALL SplashSetFileJarName(const char* fileName, const char* jarName) { Splash *splash = SplashGetInstance();

 free(splash->fileName);
 splash->fileName = SplashConvertStringAlloc(fileName, &splash->fileNameLen);

 free(splash->jarName);
 splash->jarName = SplashConvertStringAlloc(jarName, &splash->jarNameLen);

}

-SPLASHEXPORT void +JNIEXPORT void JNICALL SplashInit() { Splash *splash = SplashGetInstance();

 memset(splash, 0, sizeof(Splash));

@@ -68,11 +68,11 @@ initFormat(&splash->imageFormat, QUAD_RED_MASK, QUAD_GREEN_MASK, QUAD_BLUE_MASK, QUAD_ALPHA_MASK); SplashInitPlatform(splash); }

-SPLASHEXPORT void +JNIEXPORT void JNICALL SplashClose() { Splash *splash = SplashGetInstance();

 if (splash->isVisible > 0) {

@@ -105,11 +105,11 @@ splash->overlayData = NULL; } SplashSetFileJarName(NULL, NULL); }

-SPLASHEXPORT void +JNIEXPORT void JNICALL SplashSetScaleFactor(float scaleFactor) { Splash *splash = SplashGetInstance(); splash->scaleFactor = scaleFactor; }


@@ -300,19 +300,19 @@ SplashUnlock(splash); } return success; }

-SPLASHEXPORT int +JNIEXPORT int JNICALL SplashLoadFile(const char *filename) { SplashStream stream; return SplashStreamInitFile(&stream, filename) && SplashLoadStream(&stream); }

-SPLASHEXPORT int +JNIEXPORT int JNICALL SplashLoadMemory(void *data, int size) { SplashStream stream; return SplashStreamInitMemory(&stream, data, size) && SplashLoadStream(&stream);


@@ -393,11 +393,11 @@ pStream->peek = peekMem; pStream->close = closeMem; return 1; }

-SPLASHEXPORT int +JNIEXPORT int JNICALL SplashGetScaledImgNameMaxPstfixLen(const char *fileName){ return strlen(fileName) + strlen("@100pct") + 1; }

jboolean GetScaledImageName(const char *fileName, char *scaleImageName,

< prev index next >