mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r25925) -Fix: Textfile content was clipped incorrectly and was drawn past the bottom end. (LordAro)
This commit is contained in:
parent
a249db1374
commit
0bc436fec9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user