commit 9963de836f199c57b327b482b838d1e0b1e2bf91
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Mar 31 19:32:22 2013 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sun Mar 31 19:32:22 2013 +0000
Don't hog the CPU while waiting for the file selector.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2573
---
textscreen/txt_fileselect.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/textscreen/txt_fileselect.c b/textscreen/txt_fileselect.c
index 5cc53aad..1e7b9041 100644
--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -114,7 +114,7 @@ static char *ExecReadOutput(char **argv)
result[result_len] = '\0';
}
- TXT_Sleep(25);
+ usleep(100 * 1000);
TXT_UpdateScreen();
}
@@ -315,8 +315,6 @@ char *TXT_SelectFile(char *window_title, char **extensions)
" copy POSIX path of theFile to stdout\n" \
"end tell\n"
-// "tell app appname\n"
-
static char *EscapedString(char *s)
{
char *result;