shithub: choc

Download patch

ref: 9963de836f199c57b327b482b838d1e0b1e2bf91
parent: a16cb18b8457862602c6877dad2f729b7c5238dc
author: Simon Howard <fraggle@gmail.com>
date: Sun Mar 31 15:32:22 EDT 2013

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

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2573

--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -114,7 +114,7 @@
             result[result_len] = '\0';
         }
 
-        TXT_Sleep(25);
+        usleep(100 * 1000);
         TXT_UpdateScreen();
     }
 
@@ -314,8 +314,6 @@
     "    set theFile to (%s)\n" \
     "    copy POSIX path of theFile to stdout\n" \
     "end tell\n"
-
-//    "tell app appname\n"
 
 static char *EscapedString(char *s)
 {