Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video: wayland: Display non-native fullscreen aspect ratios centered with a black border #5534

Closed
wants to merge 1 commit into from

Commits on May 14, 2022

  1. video: wayland: Display non-native fullscreen aspect ratios centered …

    …with a black border
    
    Employ subsurfaces and viewports to maintain a proper aspect ratio for fullscreen modes that don't match the display's native aspect ratio, and display the content centered, with a black border.  The mask surface uses a 1x1 SHM buffer, which is scaled to the display output dimensions using a viewport.  The draw surface becomes a subsurface of the parent surface and runs in desynced mode.
    
    The hints SDL_WAYLAND_MODE_EMULATION and SDL_WAYLAND_SCALING are provided to disable non-desktop fullscreen resolutions and disable any output scaling/masking respectively when set to 0.
    Kontrabant committed May 14, 2022
    Copy the full SHA
    b8d2bd0 View commit details
    Browse the repository at this point in the history