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/status.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gui/status.cpp') diff --git a/src/gui/status.cpp b/src/gui/status.cpp index e298c3e2..e6f57de5 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -253,9 +253,6 @@ void StatusWindow::update() void StatusWindow::draw(gcn::Graphics *g) { - if (!isVisible()) - return; - update(); Window::draw(g); -- cgit v1.2.3-70-g09d2