@@ -3518,8 +3518,8 @@ void LLWindowSDL::showCursorFromMouseMove()
35183518//
35193519namespace
35203520{
3521- constexpr int SPLASH_W = 480 ;
3522- constexpr int SPLASH_H = 120 ;
3521+ constexpr int SPLASH_W = 440 ;
3522+ constexpr int SPLASH_H = 100 ;
35233523 constexpr float SPLASH_FONT_PT = 18 .0f ;
35243524 // Inter (variable WOFF2) — FreeType decompresses WOFF2 via brotli, which the
35253525 // viewer's freetype build (shared with SDL3_ttf) enables.
@@ -3544,6 +3544,7 @@ LLSplashScreenSDL::~LLSplashScreenSDL()
35443544
35453545void LLSplashScreenSDL::showImpl ()
35463546{
3547+ #if 0
35473548 // The splash is shown before createWindow()/init_sdl(), so the video
35483549 // subsystem may not be up yet. SDL_InitSubSystem is reference-counted, so
35493550 // initialising it here is safe; hideImpl() releases exactly this reference,
@@ -3595,11 +3596,12 @@ void LLSplashScreenSDL::showImpl()
35953596 // GL/D3D device on the splash window, which can collide with the main
35963597 // window's OpenGL context initialisation that follows — keep the splash
35973598 // entirely off the GPU.
3598- SDL_Surface* winsurf = SDL_GetWindowSurface (mWindow );
3599- if (winsurf)
3600- {
3601- mRenderer = SDL_CreateSoftwareRenderer (winsurf);
3602- }
3599+ SDL_PropertiesID render_props = SDL_CreateProperties();
3600+ SDL_SetStringProperty(render_props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "software");
3601+ SDL_SetPointerProperty(render_props, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, mWindow);
3602+ mRenderer = SDL_CreateRendererWithProperties(render_props);
3603+ SDL_DestroyProperties(props);
3604+
36033605 if (!mRenderer)
36043606 {
36053607 LL_WARNS() << "Splash: software renderer creation failed: " << SDL_GetError() << LL_ENDL;
@@ -3643,16 +3645,20 @@ void LLSplashScreenSDL::showImpl()
36433645 }
36443646
36453647 render();
3648+ #endif
36463649}
36473650
36483651void LLSplashScreenSDL::updateImpl (const std::string& mesg)
36493652{
3653+ #if 0
36503654 mMessage = mesg;
36513655 render();
3656+ #endif
36523657}
36533658
36543659void LLSplashScreenSDL::render ()
36553660{
3661+ #if 0
36563662 if (!mRenderer)
36573663 {
36583664 return;
@@ -3708,10 +3714,12 @@ void LLSplashScreenSDL::render()
37083714 // No SDL event loop is running yet (the splash precedes the main window and
37093715 // SDL_AppIterate), so pump once here to let the window actually composite.
37103716 SDL_PumpEvents();
3717+ #endif
37113718}
37123719
37133720void LLSplashScreenSDL::hideImpl ()
37143721{
3722+ #if 0
37153723 if (mIcon)
37163724 {
37173725 SDL_DestroyTexture(mIcon);
@@ -3744,6 +3752,7 @@ void LLSplashScreenSDL::hideImpl()
37443752 SDL_QuitSubSystem(SDL_INIT_VIDEO);
37453753 mInitedVideo = false;
37463754 }
3755+ #endif
37473756}
37483757
37493758S32 OSMessageBoxSDL (const std::string& text, const std::string& caption, U32 type)
0 commit comments