summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-01 15:10:32 +0000
committerfrosch <frosch@openttd.org>2013-06-01 15:10:32 +0000
commit4261b6cc822fa03e5d2c9824fdd610d21c7b289f (patch)
tree78836a3dc158844b9061ded777544aa2237032df /src/gfx_func.h
parentce110eed32eef08e7ce1c35a2c5893698afee73a (diff)
downloadopenttd-4261b6cc822fa03e5d2c9824fdd610d21c7b289f.tar.xz
(svn r25314) -Fix (r25313): If '0' is the broadest digit, 0 * sum(10^i, i=0..(n-1)) is not the broadest n-digit number.
-Fix [FS#5562]: Proper size-estimation for numbers with n digits.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index f5dbcc0bf..65616e618 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -150,7 +150,7 @@ bool ToggleFullScreen(bool fs);
/* gfx.cpp */
byte GetCharacterWidth(FontSize size, uint32 key);
byte GetDigitWidth(FontSize size = FS_NORMAL);
-uint GetBroadestDigit(FontSize size = FS_NORMAL);
+void GetBroadestDigit(uint *front, uint *next, FontSize size = FS_NORMAL);
/**
* Get height of a character for a given font size.