From e083abd148c70982a098d3f2fff8e61eee5c4f91 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 28 Mar 2009 00:02:01 +0100 Subject: Removed a lot of useless isVisible() checks The draw() method of a widget isn't called when a widget is not visible. --- src/gui/emoteshortcutcontainer.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gui/emoteshortcutcontainer.cpp') diff --git a/src/gui/emoteshortcutcontainer.cpp b/src/gui/emoteshortcutcontainer.cpp index 661f42a7..ae5eb859 100644 --- a/src/gui/emoteshortcutcontainer.cpp +++ b/src/gui/emoteshortcutcontainer.cpp @@ -76,9 +76,6 @@ EmoteShortcutContainer::~EmoteShortcutContainer() void EmoteShortcutContainer::draw(gcn::Graphics *graphics) { - if (!isVisible()) - return; - if (config.getValue("guialpha", 0.8) != mAlpha) { mAlpha = config.getValue("guialpha", 0.8); -- cgit v1.2.3-70-g09d2