-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
Now the center stuff also works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This fixes #31