src/share/bin/splashscreen_stubs.c

Print this page

        

*** 35,44 **** --- 35,47 ---- typedef int (*SplashLoadFile_t)(const char* filename); typedef void (*SplashInit_t)(void); typedef void (*SplashClose_t)(void); typedef void (*SplashSetFileJarName_t)(const char* fileName, const char* jarName); + typedef void (*SplashSetScaleFactor_t)(float scaleFactor); + typedef char* (*SplashGetScaledImageName_t)(const char* fileName, + const char* jarName, float* scaleFactor); /* * This macro invokes a function from the shared lib. * it locates a function with SplashProcAddress on demand. * if SplashProcAddress fails, def value is returned.
*** 56,70 **** #define INVOKE(name,def) _INVOKE(name,def,return) #define INVOKEV(name) _INVOKE(name, ,;) int DoSplashLoadMemory(void* pdata, int size) { ! INVOKE(SplashLoadMemory,0)(pdata, size); } int DoSplashLoadFile(const char* filename) { ! INVOKE(SplashLoadFile,0)(filename); } void DoSplashInit(void) { INVOKEV(SplashInit)(); } --- 59,73 ---- #define INVOKE(name,def) _INVOKE(name,def,return) #define INVOKEV(name) _INVOKE(name, ,;) int DoSplashLoadMemory(void* pdata, int size) { ! INVOKE(SplashLoadMemory, NULL)(pdata, size); } int DoSplashLoadFile(const char* filename) { ! INVOKE(SplashLoadFile, NULL)(filename); } void DoSplashInit(void) { INVOKEV(SplashInit)(); }
*** 74,78 **** --- 77,90 ---- } void DoSplashSetFileJarName(const char* fileName, const char* jarName) { INVOKEV(SplashSetFileJarName)(fileName, jarName); } + + void DoSplashSetScaleFactor(float scaleFactor) { + INVOKEV(SplashSetScaleFactor)(scaleFactor); + } + + char* DoSplashGetScaledImageName(const char* fileName, const char* jarName, + float* scaleFactor) { + INVOKE(SplashGetScaledImageName, NULL)(fileName, jarName, scaleFactor); + } \ No newline at end of file