summaryrefslogtreecommitdiff
path: root/gui.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-24 22:57:44 +0000
committerDarkvater <darkvater@openttd.org>2006-10-24 22:57:44 +0000
commitb63d9468984c2dd52461e61c90b52274373b8c43 (patch)
treef1b49fed0bd10b13082a8846aac259e173795f64 /gui.h
parent3760fe9a409ce304b1b8d2d9821d32b5916d5a8e (diff)
downloadopenttd-b63d9468984c2dd52461e61c90b52274373b8c43.tar.xz
(svn r6937) -Codechange: Add an InitializeTextBuffer() function that handles setting up the
textbuffer instead of typing it out each and every time.
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui.h b/gui.h
index 46f0c3996..ddb9d8edd 100644
--- a/gui.h
+++ b/gui.h
@@ -112,6 +112,7 @@ bool DeleteTextBufferChar(Textbuf *tb, int delmode);
bool InsertTextBufferChar(Textbuf *tb, byte key);
bool InsertTextBufferClipboard(Textbuf *tb);
bool MoveTextBufferPos(Textbuf *tb, int navmode);
+void InitializeTextBuffer(Textbuf *tb, const char *buf, uint16 maxlength, uint16 maxwidth);
void UpdateTextBufferSize(Textbuf *tb);
void BuildFileList(void);