summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-04 18:48:46 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-04 18:48:46 (GMT)
commitbd08a3b607b2007c0328ef539c66808e73d851ed (patch)
treefcb0311e3dfccc670a71e0aeedf4a2ffa869efba /src/interface.c
parent1dc6552fc0985f7125f29a9a18bff2416d0af281 (diff)
downloadpowder-bd08a3b607b2007c0328ef539c66808e73d851ed.zip
powder-bd08a3b607b2007c0328ef539c66808e73d851ed.tar.gz
Fixes to Open_UI: Comment is cleared after being submitted, Mouse click in comment box no longer exists Open_UI
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 6f16541..06af843 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -2824,9 +2824,10 @@ int open_ui(pixel *vid_buf, char *save_id, char *save_date)
fillrect(vid_buf, -1, -1, XRES+BARSIZE, YRES+MENUSIZE, 0, 0, 0, 192);
info_box(vid_buf, "Submitting Comment...");
execute_submit(vid_buf, save_id, ed.str);
+ ed.str[0] = 0;
}
}
- if(!(mx>50 && my>50 && mx<XRES+BARSIZE-100 && my<YRES+MENUSIZE-100) && b && !queue_open){
+ if(!(mx>50 && my>50 && mx<XRES+BARSIZE-50 && my<YRES+MENUSIZE-50) && b && !queue_open){
retval = 0;
break;
}