clang-tidy (amb el fuck de que no feien bona parella el clang de macos i el tidy de llvm)
This commit is contained in:
@@ -192,8 +192,8 @@ void WindowMessage::updateStyles() {
|
||||
void WindowMessage::updatePosition() {
|
||||
switch (position_mode_) {
|
||||
case PositionMode::CENTERED:
|
||||
rect_.x = anchor_.x - rect_.w / 2.0F;
|
||||
rect_.y = anchor_.y - rect_.h / 2.0F;
|
||||
rect_.x = anchor_.x - (rect_.w / 2.0F);
|
||||
rect_.y = anchor_.y - (rect_.h / 2.0F);
|
||||
break;
|
||||
case PositionMode::FIXED:
|
||||
rect_.x = anchor_.x;
|
||||
@@ -355,9 +355,9 @@ void WindowMessage::updateResizeAnimation(float delta_time) {
|
||||
float progress = easeOut(resize_animation_.getProgress(config_.animation_duration));
|
||||
|
||||
rect_.w = resize_animation_.start_width +
|
||||
(resize_animation_.target_width - resize_animation_.start_width) * progress;
|
||||
((resize_animation_.target_width - resize_animation_.start_width) * progress);
|
||||
rect_.h = resize_animation_.start_height +
|
||||
(resize_animation_.target_height - resize_animation_.start_height) * progress;
|
||||
((resize_animation_.target_height - resize_animation_.start_height) * progress);
|
||||
|
||||
updatePosition(); // Mantener la posición centrada durante la animación
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user