Changeset - r20881:9124e77213d8
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-10-28 12:15:44
frosch@openttd.org
(svn r25925) -Fix: Textfile content was clipped incorrectly and was drawn past the bottom end. (LordAro)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/textfile_gui.cpp
Show inline comments
 
@@ -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;
 

	
0 comments (0 inline, 0 general)