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

feat: Support high-DPI rendering in a cross-platform way #1816

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    f3a834a View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. feat: Implement cross-platform DPI scaling

    This replaces the Windows-only code with code that should work on
    all the platforms. Tested on Linux/Wayland.
    
    The “Scaling” option is now just treated like a normal UI zoom
    control for users who want a larger UI. This means “Native” scaling
    option is removed now since that does not mean anything.
    csnover committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a408e65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4493fff View commit details
    Browse the repository at this point in the history
  3. feat: Improve appearance of OOB banner

    Rendering at a non-native resolution and then scaling the bitmap
    looks bad. The scaling seems to try to just get it to end up the
    same size as the welcome screen, so just use the same size for
    both.
    csnover committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a83e2a5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3cc56fe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a02dcaf View commit details
    Browse the repository at this point in the history
  6. impr: Re-render SVG textures on scaling changes

    This change also future-proofs the scaling event so it can be fired
    when users change the scaling mode in the settings, since both user
    scaling and window content scaling changes require
    re-rasterisation.
    csnover committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a94fbe4 View commit details
    Browse the repository at this point in the history