Skip to content

Feedback on page SDL3/README-migration #1010

Description

@WrapEarnPass

There does not appear to be any note here about SDL_GetDisplayUsableBounds
sdl2/SDL_GetDisplayUsableBounds(0, was always the default display.

The primary display (displayIndex zero) is always located at 0,0.

with SDL3, that is now always invalid.

SDL_GetDisplayUsableBounds(SDL_DisplayID displayID
typedef Uint32 SDL_DisplayID;

Remarks

If the display is disconnected and reconnected, it will get a new ID.

The value 0 is an invalid ID.

Readme-migration does note that SDL_DisplayID is invalid, but it doesnt note that SDL_GetDisplayUsableBounds will compile and execute with no warnings that the SDL2 form is entirely invalid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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