src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m

Print this page

        

*** 46,56 **** static void SplashCenter(Splash * splash) { // otherwise could use screens[0] to select the menu-bar screen ! NSRect screenFrame = [[NSScreen mainScreen] visibleFrame]; splash->x = (screenFrame.size.width - splash->width) / 2; splash->y = (screenFrame.size.height - splash->height) / 2 + screenFrame.origin.y; } --- 46,56 ---- static void SplashCenter(Splash * splash) { // otherwise could use screens[0] to select the menu-bar screen ! NSRect screenFrame = [[NSScreen mainScreen] frame]; splash->x = (screenFrame.size.width - splash->width) / 2; splash->y = (screenFrame.size.height - splash->height) / 2 + screenFrame.origin.y; }