From 78991c216ba8104e13cee84cdc15fde203022333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Fri, 29 Apr 2016 05:55:12 +0200 Subject: [PATCH] Suppression de la profondeur sur bouton choix --- src/gui/icon_radio_button.cpp | 11 ----------- 1 file changed, 11 deletions(-) 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();