Skip to content

UT2004 (via sdl12-compat) splash screen doesn't center. #540

@icculus

Description

@icculus

The splash screen in UT2004:

Image

Should be centered on the desktop before the game loads, as it is when sdl12-compat is talking to real SDL2:

Image

But it's loading over on the left hand side when chained through sdl12-compat to sdl2-compat to SDL3:

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions