summaryrefslogtreecommitdiff
path: root/src/goal_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-03-23 12:49:22 +0000
committerfrosch <frosch@openttd.org>2014-03-23 12:49:22 +0000
commit73a22455289d8a29cdf4efd56a17cf2b646ea3dd (patch)
tree53eeaa33e2fae520afc0e4f93ee38be89a71f69d /src/goal_gui.cpp
parent3352dc7e62e85d747698d15f25ece3e11975847d (diff)
downloadopenttd-73a22455289d8a29cdf4efd56a17cf2b646ea3dd.tar.xz
(svn r26420) -Fix (r25623) [FS#5948]: Goal GUI failed to shade.
Diffstat (limited to 'src/goal_gui.cpp')
-rw-r--r--src/goal_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp
index caa04e544..b2e591ffd 100644
--- a/src/goal_gui.cpp
+++ b/src/goal_gui.cpp
@@ -273,6 +273,8 @@ struct GoalListWindow : public Window {
{
this->DrawWidgets();
+ if (this->IsShaded()) return; // Don't draw anything when the window is shaded.
+
/* Calculate progress column width. */
uint max_width = 0;
Goal *s;