summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-31 14:34:26 +0000
committerrubidium <rubidium@openttd.org>2006-12-31 14:34:26 +0000
commit4c855b46134007428c372898d72aec57c3154485 (patch)
treed64f3c5d495a40e9be2621c9b35a98c67446ee08 /window.h
parentcafdfa1ff284504553b0b584202ca15f7a141c19 (diff)
downloadopenttd-4c855b46134007428c372898d72aec57c3154485.tar.xz
(svn r7700) -Fix (r7182): the caret 'randomly' jumped back and forth when getting a new randomised seed in the Generation World GUI.
Diffstat (limited to 'window.h')
-rw-r--r--window.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/window.h b/window.h
index 877bf9443..2e6fd8b94 100644
--- a/window.h
+++ b/window.h
@@ -284,10 +284,10 @@ enum WindowDefaultPosition {
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 string. Width specifies screensize in pixels */
+ uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels, maxlength is in bytes */
+ uint16 length, width; /* the current size of the string. Width specifies screensize in pixels, length is in bytes */
bool caret; /* is the caret ("_") visible or not */
- uint16 caretpos; /* the current position of the caret in the buffer */
+ uint16 caretpos; /* the current position of the caret in the buffer, in bytes */
uint16 caretxoffs; /* the current position of the caret in pixels */
} Textbuf;