Fix bug #5832, where last line of long stories is truncated
(we add 20 to texty, so we must take that into account when setting it)
This commit is contained in:
parent
4f836a4efe
commit
34498a7914
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ bool show_intro_part(display &disp, const config& part,
|
|||
const SDL_Rect total_size = font::draw_text(NULL, screen_area(), font::SIZE_PLUS,
|
||||
font::NORMAL_COLOUR, story, 0, 0);
|
||||
if (texty + 20 + total_size.h > screen_area().h) {
|
||||
texty = screen_area().h > total_size.h + 1 ? screen_area().h - total_size.h - 1 : 0;
|
||||
texty = screen_area().h > total_size.h + 1 ? screen_area().h - total_size.h - 21 : 0;
|
||||
|
||||
draw_solid_tinted_rectangle(textx, texty, total_size.w, total_size.h,
|
||||
0, 0, 0, 128, video.getSurface());
|
||||
|
|
Loading…
Add table
Reference in a new issue