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

wayland: add wp-fractional-scale-v1 support #10943

Merged
merged 2 commits into from
Jan 24, 2023

Commits on Jan 23, 2023

  1. wayland: rewrite geometry and scaling handling

    This is in preparation for fractional scaling support. Basically, redo
    all the coordinates in wayland so that wl->geometry is equal exactly to
    what is being put out to the screen (no extra wl->scaling multiplication
    required). The wl->vdparams variable is also eliminated for simplicity.
    This changes mpv's behavior on wayland with hidpi scaling but that will
    be addressed in more detail with the next commit.
    Dudemanguy committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    ad0dd0b View commit details
    Browse the repository at this point in the history
  2. wayland: add wp-fractional-scale-v1 support

    This protocol is pretty important since it finally lets us solve the
    longstanding issue of fractional scaling in wayland (no more mpv doing
    rendering over the target resolution and then being scaled down). This
    protocol also can completely replace the buffer_scale usage that we are
    currently using for integer scaling so hopefully this can be removed
    sometime in the future. Note that vo_dmabuf_wayland is omitted from the
    fractional scale handling because we want the compositor to handle all
    the scaling for that VO.
    
    Fixes mpv-player#9443.
    Dudemanguy committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    a3f3813 View commit details
    Browse the repository at this point in the history