ref: a64a06c4bb5d9ebcc6bb8e8c6897da1de692f7d1
parent: 8ac5ecc67a9352810c4db22b11e536fc176fc8ab
author: Simon Howard <[email protected]>
date: Fri Jan 5 18:36:35 EST 2007
Clear the current value when entering a new value in number input boxes. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 816
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -175,7 +175,7 @@
{
if (key == KEY_ENTER)
{
- SetBufferFromValue(inputbox);
+ strcpy(inputbox->buffer, "");
inputbox->editing = 1;
return 1;
}
--- a/textscreen/txt_spinctrl.c
+++ b/textscreen/txt_spinctrl.c
@@ -295,7 +295,7 @@
if (key == KEY_ENTER)
{
spincontrol->editing = 1;
- SetBuffer(spincontrol);
+ strcpy(spincontrol->buffer, "");
return 1;
}
if (key == KEY_LEFTARROW)