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

Print this page

        

@@ -33,10 +33,13 @@
 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,10 +80,11 @@
     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,10 +117,12 @@
 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,10 +142,11 @@
 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);