mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 20:48:05 +00:00
Reverted part of 2009-10-02T19:27:54Z!koraq@xs4all.nl.
As pointed by alink, tooltips do actually care about the area size.
This commit is contained in:
parent
e0872c8a0e
commit
ac84b5c19e
@ -2193,15 +2193,17 @@ void display::refresh_report(reports::TYPE report_num, reports::report report,
|
||||
text.set_maximum_height(area.h, false);
|
||||
surface s = text.render();
|
||||
screen_.blit_surface(x, y, s);
|
||||
if (s->h > tallest) {
|
||||
tallest = s->h;
|
||||
area.w = s->w;
|
||||
area.h = s->h;
|
||||
if (area.h > tallest) {
|
||||
tallest = area.h;
|
||||
}
|
||||
if (eol) {
|
||||
x = rect.x;
|
||||
y += tallest;
|
||||
tallest = 0;
|
||||
} else {
|
||||
x += s->w;
|
||||
x += area.w;
|
||||
}
|
||||
}
|
||||
else if (!e.image.get_filename().empty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user