1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

(svn r6953) -Codechange: Change FormatStringLinebreaks in such a way that if no whitespace was seen

for the 'current line' of a certain maximum width, the string will be truncated instead
 of the old behaviour which just left it alone.
This commit is contained in:
Darkvater
2006-10-27 09:55:38 +00:00
parent c098736816
commit d7d4f0192d
2 changed files with 44 additions and 18 deletions

1
gfx.h
View File

@@ -68,6 +68,7 @@ void GfxFillRect(int left, int top, int right, int bottom, int color);
void GfxDrawLine(int left, int top, int right, int bottom, int color);
BoundingRect GetStringBoundingBox(const char *str);
uint32 FormatStringLinebreaks(char *str, int maxw);
void LoadStringWidthTable(void);
void DrawStringMultiCenter(int x, int y, StringID str, int maxw);
uint DrawStringMultiLine(int x, int y, StringID str, int maxw);