summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2013-03-31 19:32:22 +0000
committerSimon Howard2013-03-31 19:32:22 +0000
commit9963de836f199c57b327b482b838d1e0b1e2bf91 (patch)
tree4905645c19e4406a24a31f68929367862ba951b1
parenta16cb18b8457862602c6877dad2f729b7c5238dc (diff)
downloadchocolate-doom-9963de836f199c57b327b482b838d1e0b1e2bf91.tar.gz
chocolate-doom-9963de836f199c57b327b482b838d1e0b1e2bf91.tar.bz2
chocolate-doom-9963de836f199c57b327b482b838d1e0b1e2bf91.zip
Don't hog the CPU while waiting for the file selector.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2573
-rw-r--r--textscreen/txt_fileselect.c4
1 files changed, 1 insertions, 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;