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

fix: Make AGS respect monitor scale #434

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

threehymns
Copy link
Contributor

@threehymns threehymns commented Sep 13, 2024

Pull Request

Description

This PR makes SCREEN_WIDTH and SCREEN_HEIGHT take the scale of the monitor into account by dividing the resolution by the scale. The screenshots are with a 4k monitor with the monitor scale set to 2.0. (equals a final width and height of 1920x1080). The AGS overview scale is left at the default.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation. (Maybe?)
  • I want to add something in Hyprland-Dots wiki.
  • I have added tests to cover my changes. (N/A?)
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed. (N/A?)

Screenshots

Before After
image image

@JaKooLit JaKooLit changed the base branch from main to development September 14, 2024 03:46
@JaKooLit JaKooLit merged commit 2e0d127 into JaKooLit:development Sep 14, 2024
@JaKooLit
Copy link
Owner

Excellent

Thank you very much

@JaKooLit JaKooLit mentioned this pull request Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants