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 11d6d7c commit 110a935
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->getX(), widget->getY());
QPoint old_pos(widget->centeredX, widget->centeredY);

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

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

0 comments on commit 110a935

Please sign in to comment.