< prev index next >

src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c

Print this page

        

@@ -403,11 +403,11 @@
     SplashCleanup(SplashGetInstance());
     pthread_exit(NULL);
     return 0;
 }
 
-int
+void
 SplashInitPlatform(Splash * splash) {
     int shapeVersionMajor, shapeVersionMinor;
 
     // This setting enables the synchronous Xlib mode!
     // Don't use it == 1 in production builds!

@@ -422,11 +422,11 @@
 //    XSetIOErrorHandler(HandleIOError);
     XSetIOErrorHandler(NULL);
     splash->display = XOpenDisplay(NULL);
     if (!splash->display) {
         splash->isVisible = -1;
-        return 0;
+        return;
     }
 
     shapeSupported = XShapeQueryExtension(splash->display, &shapeEventBase,
             &shapeErrorBase);
     if (shapeSupported) {

@@ -472,11 +472,11 @@
                 splash->isVisible = -1;
                 splash->display = NULL;
                 splash->screen = NULL;
                 splash->visual = NULL;
                 fprintf(stderr, "Warning: unable to initialize the splashscreen. Not enough available color cells.\n");
-                return 0;
+                return;
             }
             splash->cmap = AllocColors(splash->display, splash->screen,
                     numColors, colorIndex);
             for (i = 0; i < numColors; i++) {
                 splash->colorIndex[i] = colorIndex[i];

@@ -504,11 +504,10 @@
             break;
         }
     default:
         ; /* FIXME: should probably be fixed, but javaws splash screen doesn't support other visuals either */
     }
-    return 1;
 }
 
 
 void
 SplashCleanupPlatform(Splash * splash) {
< prev index next >