summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-28 10:40:52 +0000
committerfrosch <frosch@openttd.org>2013-10-28 10:40:52 +0000
commit7fbe7895ef60c76a971da52f54075569d6320362 (patch)
tree4afea88cbf72f760a752b6bfaa35b61eb3c8b0ce
parent6872e8c63ce1d4cf56eeeb35fe659501334212e8 (diff)
downloadopenttd-7fbe7895ef60c76a971da52f54075569d6320362.tar.xz
(svn r25920) -Fix: Story page content was clipped incorrectly and was drawn past the bottom end.
-rw-r--r--src/story_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index 7a23dec7d..1e0bc09da 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -508,7 +508,7 @@ public:
/* Set up a clipping region for the panel. */
DrawPixelInfo tmp_dpi;
- if (!FillDrawPixelInfo(&tmp_dpi, x, y, right - x + 1, r.bottom - y + 1)) return;
+ if (!FillDrawPixelInfo(&tmp_dpi, x, y, right - x + 1, bottom - y + 1)) return;
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &tmp_dpi;