Skip to content

Commit

Permalink
Update courtroom.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoru-1816 authored Jan 14, 2025
1 parent a20b88b commit bdd597d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3213,13 +3213,13 @@ void Courtroom::do_character_slide(AOLayer *widget)
ui_viewport->width() * last_x_offset / 100,
ui_viewport->height() * char_vert_offset / 100
);
QPoint old_pos(widget->x, widget->y);
QPoint old_pos(widget->getX(), widget->getY());

widget->move_and_center(
ui_viewport->width() * self_offset / 100,
ui_viewport->height() * self_offset_v / 100
);
QPoint new_pos(widget->x, widget->y);
QPoint new_pos(widget->getX(), widget->getY());

QPropertyAnimation *slide_animation = new QPropertyAnimation(widget, "pos", this);
slide_animation->setDuration(500);
Expand Down

0 comments on commit bdd597d

Please sign in to comment.