diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-24 22:57:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-24 22:57:44 +0000 |
commit | b63d9468984c2dd52461e61c90b52274373b8c43 (patch) | |
tree | f1b49fed0bd10b13082a8846aac259e173795f64 /gui.h | |
parent | 3760fe9a409ce304b1b8d2d9821d32b5916d5a8e (diff) | |
download | openttd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |