fix: Apply x position once to action blocks

This commit is contained in:
Michael Carlberg 2016-12-20 08:00:08 +01:00
parent ccbb38798d
commit 3a01bcf308
1 changed files with 2 additions and 2 deletions

View File

@ -663,8 +663,8 @@ bool renderer::on(const action_end& evt) {
break;
}
action->start_x += m_bar.pos.x + m_rect.x;
action->end_x += m_bar.pos.x + m_rect.x;
action->start_x += m_rect.x;
action->end_x += m_rect.x;
m_log.trace_x("renderer: action_end(%i, %s, %i)", static_cast<uint8_t>(btn), action->command, action->width());
}