Don't hog the CPU while waiting for the file selector.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2573
This commit is contained in:
Simon Howard 2013-03-31 19:32:22 +00:00
parent a16cb18b84
commit 9963de836f

View file

@ -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;