From 038da00e799b4bf3af824075a260083c56392964 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Tue, 6 Sep 2022 13:21:09 +0300 Subject: Code optimizations / refactor (#12704) Co-authored-by: SmallJoker Co-authored-by: sfan5 --- src/gui/guiButton.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/guiButton.cpp') diff --git a/src/gui/guiButton.cpp b/src/gui/guiButton.cpp index c38d901c4..be7e0c439 100644 --- a/src/gui/guiButton.cpp +++ b/src/gui/guiButton.cpp @@ -329,10 +329,9 @@ void GUIButton::draw() if (SpriteBank) { - core::position2di pos(buttonCenter); - if (isEnabled()) { + core::position2di pos(buttonCenter); // pressed / unpressed animation EGUI_BUTTON_STATE state = Pressed ? EGBS_BUTTON_DOWN : EGBS_BUTTON_UP; drawSprite(state, ClickTime, pos); -- cgit v1.2.3