summaryrefslogtreecommitdiff
path: root/src/gui/table.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-05 23:13:55 -0700
committerIra Rice <irarice@gmail.com>2009-03-05 23:13:55 -0700
commitaa4229cbb9f2b264ca96c3beedc66b1c79ccc1f5 (patch)
tree19c5a75a766b7df51ae468fb6b8fdbcfd2c6cc72 /src/gui/table.cpp
parent93e45964f3b7a0735984616f622ec32b40a21781 (diff)
downloadmana-client-aa4229cbb9f2b264ca96c3beedc66b1c79ccc1f5.tar.gz
mana-client-aa4229cbb9f2b264ca96c3beedc66b1c79ccc1f5.tar.bz2
mana-client-aa4229cbb9f2b264ca96c3beedc66b1c79ccc1f5.tar.xz
mana-client-aa4229cbb9f2b264ca96c3beedc66b1c79ccc1f5.zip
Made some optimizations based on some profiling done by Octalot, as well
as some other optimizations that I could see that cut down on some unneeded redraws, which in turn improved frame rates slightly. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/table.cpp')
-rw-r--r--src/gui/table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/table.cpp b/src/gui/table.cpp
index 29a33b7a..b2571495 100644
--- a/src/gui/table.cpp
+++ b/src/gui/table.cpp
@@ -265,7 +265,7 @@ void GuiTable::installActionListeners(void)
// -- widget ops
void GuiTable::draw(gcn::Graphics* graphics)
{
- if (!mModel)
+ if (!mModel || !isVisible())
return;
if (config.getValue("guialpha", 0.8) != mAlpha)