summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-10-28 12:15:44 +0000
committerfrosch <frosch@openttd.org>2013-10-28 12:15:44 +0000
commit0bc436fec91d25058e534b74eb8f62a6278e5434 (patch)
tree35880cbfff488814140329323b1d47cde4eb0490
parenta249db1374c0eca31f93f9ced91168cc7de4bc6a (diff)
downloadopenttd-0bc436fec91d25058e534b74eb8f62a6278e5434.tar.xz
(svn r25925) -Fix: Textfile content was clipped incorrectly and was drawn past the bottom end. (LordAro)
-rw-r--r--src/textfile_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp
index 05c534c59..95f2b0d77 100644
--- a/src/textfile_gui.cpp
+++ b/src/textfile_gui.cpp
@@ -134,7 +134,7 @@ void TextfileWindow::SetupScrollbars()
const int bottom = r.bottom - WD_FRAMETEXT_BOTTOM;
DrawPixelInfo new_dpi;
- if (!FillDrawPixelInfo(&new_dpi, x, y, right - x + 1, r.bottom - y + 1)) return;
+ if (!FillDrawPixelInfo(&new_dpi, x, y, right - x + 1, bottom - y + 1)) return;
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &new_dpi;