summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-27 11:09:24 +0000
committerDarkvater <darkvater@openttd.org>2006-10-27 11:09:24 +0000
commitbc3c56ffeb832f45fc8009b586697e27f3f1c49a (patch)
treedd111ab67624dcf6659b19b75405c107d84c5420 /misc_gui.c
parent2543ab6b27be1b3bfdded804a1a628bdc996179a (diff)
downloadopenttd-bc3c56ffeb832f45fc8009b586697e27f3f1c49a.tar.xz
(svn r6957) -Cleanup: comments, coding style
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 3b736a334..168255c15 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -886,7 +886,8 @@ bool MoveTextBufferPos(Textbuf *tb, int navmode)
* @param buf the buffer that will be holding the data for input
* @param maxlength maximum length in characters of this buffer
* @param maxwidth maximum length in pixels of this buffer. If reached, buffer
- * cannot grow, even if maxlength would allow because there is space */
+ * cannot grow, even if maxlength would allow because there is space. A length
+ * of zero '0' means the buffer is only restricted by maxlength */
void InitializeTextBuffer(Textbuf *tb, const char *buf, uint16 maxlength, uint16 maxwidth)
{
tb->buf = (char*)buf;