Ticket #1999: stpere_bootsplash.diff

File stpere_bootsplash.diff, 1.2 KB (added by stpere, 16 years ago)

The patch file

  • src/system/kernel/boot_splash.cpp

     
    191191
    192192    // TODO: Use placement info from images.h
    193193    int x = sInfo->width / 2 - kSplashIconsWidth / 2;
    194     int y = sInfo->height / 2 - kSplashLogoHeight / 2;
    195     y = y + kSplashLogoHeight;
     194    int y = sInfo->height / 2 - kSplashIconsHeight / 2;
    196195
    197196    int stageLeftEdge = kSplashIconsWidth * stage / BOOT_SPLASH_STAGE_MAX;
    198197    int stageRightEdge = kSplashIconsWidth * (stage + 1)
  • src/system/boot/platform/bios_ia32/video.cpp

     
    862862
    863863    // render splash logo
    864864    int x = gKernelArgs.frame_buffer.width / 2 - kSplashLogoWidth / 2;
    865     int y = gKernelArgs.frame_buffer.height / 2 - kSplashLogoHeight / 2;
     865    int y = gKernelArgs.frame_buffer.height / 2 - kSplashIconsHeight / 2;
     866    y -= kSplashLogoHeight;
    866867    blit_image(kSplashLogoImage, NULL, kSplashLogoWidth, kSplashLogoHeight,
    867868        NULL, x, y);
    868869