diff options
author | Darkvater <darkvater@openttd.org> | 2006-04-06 19:11:41 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-04-06 19:11:41 +0000 |
commit | b68b9b149a5a0c969de94f192420d953c14b1109 (patch) | |
tree | 0c757bee941699bbd6bd6b5291cf2d22688471e2 /window.h | |
parent | 558ecb16317bccb53e534f561c659844bcd89df5 (diff) | |
download | openttd-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |