From cd8ec28e18d14c7eca0901df6bba2194f228378b Mon Sep 17 00:00:00 2001 From: FacialTurd Date: Mon, 13 Dec 2010 04:10:36 -0800 Subject: [PATCH] Added missing ui_edit->multiline to older textboxes to fix text edit bug. --- src/interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/interface.c b/src/interface.c index 1052a228b..d53192915 100644 --- a/src/interface.c +++ b/src/interface.c @@ -147,6 +147,7 @@ void add_sign_ui(pixel *vid_buf, int mx, int my) ed.focus = 1; ed.hide = 0; ed.cursor = strlen(signs[i].text); + ed.multiline = 0; strcpy(ed.str, signs[i].text); ju = signs[i].ju; @@ -763,6 +764,7 @@ void login_ui(pixel *vid_buf) ed1.def = "[user name]"; ed1.focus = 1; ed1.hide = 0; + ed1.multiline = 0; ed1.cursor = strlen(svf_user); strcpy(ed1.str, svf_user); ed2.x = x0+25; @@ -773,6 +775,7 @@ void login_ui(pixel *vid_buf) ed2.focus = 0; ed2.hide = 1; ed2.cursor = 0; + ed2.multiline = 0; strcpy(ed2.str, ""); fillrect(vid_buf, -1, -1, XRES, YRES+MENUSIZE, 0, 0, 0, 192); @@ -1024,6 +1027,7 @@ void tag_list_ui(pixel *vid_buf) ed.focus = 0; ed.hide = 0; ed.cursor = 0; + ed.multiline = 0; strcpy(ed.str, ""); fillrect(vid_buf, -1, -1, XRES, YRES+MENUSIZE, 0, 0, 0, 192);