(svn r23791) -Fix [FS#4960]: resize text panel for parameter description if it doesn't fit in 4 lines.

If you resize the window so it's smaller than default the text might still not fit
This commit is contained in:
yexo
2012-01-12 19:11:51 +00:00
parent 700a65a227
commit e1dc47e65c
3 changed files with 42 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ Dimension GetStringBoundingBox(StringID strid);
uint32 FormatStringLinebreaks(char *str, const char *last, int maxw, FontSize start_fontsize = FS_NORMAL);
int GetStringHeight(StringID str, int maxw);
Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion);
Dimension GetStringMultiLineBoundingBox(const char *str, const Dimension &suggestion);
void LoadStringWidthTable(bool monospace = false);
void DrawDirtyBlocks();