diff options
author | Simon Howard | 2007-01-05 23:36:35 +0000 |
---|---|---|
committer | Simon Howard | 2007-01-05 23:36:35 +0000 |
commit | a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1 (patch) | |
tree | 60515d4e2b471d1294096617fc1ff9067c53b82c | |
parent | 8ac5ecc67a9352810c4db22b11e536fc176fc8ab (diff) | |
download | chocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.tar.gz chocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.tar.bz2 chocolate-doom-a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1.zip |
Clear the current value when entering a new value in number input boxes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 816
-rw-r--r-- | textscreen/txt_inputbox.c | 2 | ||||
-rw-r--r-- | textscreen/txt_spinctrl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c index 33775bb1..2798cce4 100644 --- a/textscreen/txt_inputbox.c +++ b/textscreen/txt_inputbox.c @@ -175,7 +175,7 @@ static int TXT_IntInputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key) { if (key == KEY_ENTER) { - SetBufferFromValue(inputbox); + strcpy(inputbox->buffer, ""); inputbox->editing = 1; return 1; } diff --git a/textscreen/txt_spinctrl.c b/textscreen/txt_spinctrl.c index 145e398b..be9da823 100644 --- a/textscreen/txt_spinctrl.c +++ b/textscreen/txt_spinctrl.c @@ -295,7 +295,7 @@ static int TXT_SpinControlKeyPress(TXT_UNCAST_ARG(spincontrol), int key) if (key == KEY_ENTER) { spincontrol->editing = 1; - SetBuffer(spincontrol); + strcpy(spincontrol->buffer, ""); return 1; } if (key == KEY_LEFTARROW) |