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 switching width and height #292

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Conversation

AhJi26
Copy link
Contributor

@AhJi26 AhJi26 commented Apr 24, 2024

The previous fix called set_vertical before set_dimensions, causing the width and height to switch before getting their values. This PR add lock.is_vertical and swaps the weight and height in set_dimensions (after w and h receive their values) to resolve the issue.

This PR has been tested on my machine with a vertical monitor, and it functions correctly.

LGFae and others added 4 commits April 20, 2024 14:13
We were not rouding the fractional scale properly, which led to the
image being exactly one pixel off per row in certain configurations.
This allows `swww` to properly scale things on vertical monitors.
@AhJi26 AhJi26 changed the base branch from fix-vertical-monitor to main April 24, 2024 13:22
@clsty
Copy link

clsty commented Apr 25, 2024

Great job, I can confirm that it works on my PC (multiple monitors, one of them vertical) too.

@LGFae
Copy link
Owner

LGFae commented Apr 25, 2024

Thanks a lot!

@LGFae LGFae merged commit 453fa14 into LGFae:main Apr 25, 2024
9 checks passed
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.

None yet

3 participants