mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 23:49:09 +00:00
(svn r25925) -Fix: Textfile content was clipped incorrectly and was drawn past the bottom end. (LordAro)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user