use a value that actually does work

esr: please check on your machine how the imageplacement in the
campaigndescription does look now
This commit is contained in:
Nils Kneuper 2007-10-06 19:31:45 +00:00
parent 280456031b
commit d470c05f5a

View file

@ -877,7 +877,7 @@ void campaign_preview_pane::draw_contents()
src_rect.h = minimum<int>(max_height,img->h);
dst_rect.x = area.x+(area.w-src_rect.w)/2;
dst_rect.y = txt_area.y+((max_height-src_rect.h)*8)/13;
if(dst_rect.y - area.y >= 400) {
if(dst_rect.y - area.y >= 200) {
//for really tall dialogs, just put it under the text
dst_rect.y = txt_area.y + font::get_max_height(font::SIZE_SMALL)*5;
}