The splash screen in UT2004:
Should be centered on the desktop before the game loads, as it is when sdl12-compat is talking to real SDL2:
But it's loading over on the left hand side when chained through sdl12-compat to sdl2-compat to SDL3:
Relevant code in UT2004:
putenv("SDL_WINDOW_POS=center"); // legacy.
putenv("SDL_VIDEO_WINDOW_POS=center"); // new in SDL CVS.
SDL_Surface *screen = SDL_SetVideoMode(bmp->w, bmp->h, 0, SDL_NOFRAME);
putenv("SDL_WINDOW_POS=nopref"); // !!! FIXME: is there a portable way to delete values?
putenv("SDL_VIDEO_WINDOW_POS=nopref"); // !!! FIXME: is there a portable way to delete values?