summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-22 20:53:28 +0000
committeralberth <alberth@openttd.org>2009-12-22 20:53:28 +0000
commitb30e56850cc77ef3de16e2bc721b7e704d1a12fb (patch)
tree8bc4301440d2ca490abdc59d54ca6c4b13e0e41b /src/window_gui.h
parent3323d64f280cea84addc96d0018adaf93bb4e43b (diff)
downloadopenttd-b30e56850cc77ef3de16e2bc721b7e704d1a12fb.tar.xz
(svn r18607) -Fix (r18583): Preserve window width when shading.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index d36b704ad..f4a13e921 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -540,7 +540,7 @@ public:
/** Is window shaded currently? */
inline bool IsShaded() const
{
- return this->shade_select != NULL && this->shade_select->shown_plane == SZSP_NONE;
+ return this->shade_select != NULL && this->shade_select->shown_plane == SZSP_HORIZONTAL;
}
void SetShaded(bool make_shaded);