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

Print this page

        

*** 33,42 **** --- 33,45 ---- SPLASHEXPORT int SplashLoadFile(const char *filename); // FIXME: range checking for SplashLoadMemory SPLASHEXPORT void SplashInit(void); SPLASHEXPORT void SplashClose(void); + SPLASHEXPORT void SplashSetScaleFactor(float); + SPLASHEXPORT char* SplashGetScaledImageName(const char*, const char*, float*); + SPLASHEXPORT void SplashSetFileJarName(const char* fileName, const char* jarName); typedef struct SplashImage {
*** 77,86 **** --- 80,90 ---- int isVisible; char* fileName; /* stored in 16-bit unicode (jchars) */ int fileNameLen; char* jarName; /* stored in 16-bit unicode (jchars) */ int jarNameLen; + float scaleFactor; #if defined(WITH_WIN32) BOOL isLayered; HWND hWnd; HPALETTE hPalette; CRITICAL_SECTION lock;
*** 113,122 **** --- 117,128 ---- void SplashCleanupPlatform(Splash * splash); void SplashDonePlatform(Splash * splash); unsigned SplashTime(); char* SplashConvertStringAlloc(const char* in, int *size); + char* SplashGetScaledImageName(const char* jarName, + const char* fileName, float *scaleFactor); void SplashLock(Splash * splash); void SplashUnlock(Splash * splash); void SplashInitFrameShape(Splash * splash, int imageIndex);
*** 136,145 **** --- 142,152 ---- void SplashDone(Splash * splash); void SplashUpdateScreenData(Splash * splash); void SplashCleanup(Splash * splash); + void SplashSetScaleFactor(float scaleFactor); typedef struct SplashStream { int (*read)(void* pStream, void* pData, int nBytes); int (*peek)(void* pStream);