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

renderer: restrict maximum dot amount w.r.t to input width #56

Merged
merged 1 commit into from
Feb 24, 2024
Merged

renderer: restrict maximum dot amount w.r.t to input width #56

merged 1 commit into from
Feb 24, 2024

Conversation

mauricekraus
Copy link
Contributor

This fixes #31

Vector2D{(PASS_SIZE + PASS_SPACING) * std::floor(dots.currentAmount), 0};
if (dots.currentAmount != std::floor(dots.currentAmount) && std::floor(dots.currentAmount) < MAX_DOTS) {
Vector2D currentPos =
inputFieldBox.pos() + Vector2D{PASS_SPACING, inputFieldBox.h / 2.f - PASS_SIZE / 2.f} + Vector2D{(PASS_SIZE + PASS_SPACING) * std::floor(dots.currentAmount), 0};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uuuh why this format change? maybe slap a clang-format?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah as in the other pr, clion unfortunatly doesnt do that automatically i need ot manually run it

Copy link
Contributor Author

@mauricekraus mauricekraus Feb 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, cf is creating a new line.. (clang-format -i $SRCFILE)

@mauricekraus mauricekraus changed the title renderer: restrict maximum dot amount w.r.t to input width [DRAFT] renderer: restrict maximum dot amount w.r.t to input width Feb 21, 2024
@mauricekraus mauricekraus changed the title [DRAFT] renderer: restrict maximum dot amount w.r.t to input width renderer: restrict maximum dot amount w.r.t to input width Feb 21, 2024
@mauricekraus mauricekraus marked this pull request as draft February 21, 2024 23:19
@mauricekraus mauricekraus marked this pull request as ready for review February 21, 2024 23:59
@mauricekraus
Copy link
Contributor Author

Now the center stuff also works

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vaxerski vaxerski merged commit 0ad6591 into hyprwm:main Feb 24, 2024
1 check passed
@mauricekraus mauricekraus deleted the fix-31 branch February 24, 2024 14:15
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.

[BUG] Typing too much will make the dots go outside of the indicator
2 participants