diff --git a/src/gui/icon_radio_button.cpp b/src/gui/icon_radio_button.cpp index 56211e4..13dd39f 100644 --- a/src/gui/icon_radio_button.cpp +++ b/src/gui/icon_radio_button.cpp @@ -73,12 +73,6 @@ std::unique_ptr IconRadioButton::InvalidateImpl() const { size.x = std::min(GetAllocation().width, GetRequisition().x); size.y = std::min(GetAllocation().height, GetRequisition().y); - // si on est en train de cliquer, on décale le fond - if (GetState() == sfg::Widget::State::ACTIVE) { - position.x += 1; - position.y += 1; - } - queue->Add(sfg::Renderer::Get().CreatePane( position, size, border_width, background_color, border_color, 0 @@ -91,11 +85,6 @@ std::unique_ptr IconRadioButton::InvalidateImpl() const { GetAllocation().height - 2 * padding ); - if (GetState() == sfg::Widget::State::ACTIVE) { - allocation.left += 1; - allocation.top += 1; - } - GetChild()->SetAllocation(allocation); GetChild()->Invalidate();