summaryrefslogtreecommitdiff
path: root/src/main-x11.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-16 18:51:06 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-16 18:54:55 +0100
commit4d351b8d07c25415d5848e9486eb5cb52f02d72e (patch)
tree0b8045630e146eaa870280e2d3e7f13e50499ad2 /src/main-x11.c
parentff252acf7f2f38e33017e82881c95825b54c7cee (diff)
Replace usleep with C++11 this_thread::sleep_for()
Also remove TERM_XTRA_DELAY. The terminal abstraction should not be used for providing general platform independence. As a side effect this reintroduces support for "delay" on SDL, not sure if that's a good idea or not.
Diffstat (limited to 'src/main-x11.c')
-rw-r--r--src/main-x11.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main-x11.c b/src/main-x11.c
index 30f67173..41d629cd 100644
--- a/src/main-x11.c
+++ b/src/main-x11.c
@@ -2163,11 +2163,6 @@ static errr Term_xtra_x11(int n, int v)
/* Clear the screen, and redraw any selection later. */
case TERM_XTRA_CLEAR: Infowin_wipe(); s_ptr->drawn = FALSE; return (0);
- /* Delay for some milliseconds */
- case TERM_XTRA_DELAY:
- usleep(1000 * v);
- return (0);
-
/* React to changes */
case TERM_XTRA_REACT: return (Term_xtra_x11_react());