summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-04-06 19:11:41 +0000
committerDarkvater <darkvater@openttd.org>2006-04-06 19:11:41 +0000
commitb68b9b149a5a0c969de94f192420d953c14b1109 (patch)
tree0c757bee941699bbd6bd6b5291cf2d22688471e2 /window.h
parent558ecb16317bccb53e534f561c659844bcd89df5 (diff)
downloadopenttd-b68b9b149a5a0c969de94f192420d953c14b1109.tar.xz
(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
Diffstat (limited to 'window.h')
-rw-r--r--window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.h b/window.h
index 11e4049bb..9296847e2 100644
--- a/window.h
+++ b/window.h
@@ -238,7 +238,7 @@ enum {
typedef struct Textbuf {
char *buf; /* buffer in which text is saved */
uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels */
- uint16 length, width; /* the current size of the buffer. Width specifies screensize in pixels */
+ uint16 length, width; /* the current size of the string. Width specifies screensize in pixels */
bool caret; /* is the caret ("_") visible or not */
uint16 caretpos; /* the current position of the caret in the buffer */
uint16 caretxoffs; /* the current position of the caret in pixels */