diff options
Diffstat (limited to 'uisimulator/x11/thread.c')
-rw-r--r-- | uisimulator/x11/thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c index f3fe868fbc..6d9139c35d 100644 --- a/uisimulator/x11/thread.c +++ b/uisimulator/x11/thread.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | long current_tick = 0; | 32 | long current_tick = 0; |
33 | extern void button_tick(void); | 33 | extern void sim_tick_tasks(void); |
34 | 34 | ||
35 | static void msleep(int msec) | 35 | static void msleep(int msec) |
36 | { | 36 | { |
@@ -59,10 +59,8 @@ static void update_tick_thread() | |||
59 | + (now.tv_usec - start.tv_usec) / (1000000/HZ); | 59 | + (now.tv_usec - start.tv_usec) / (1000000/HZ); |
60 | if (new_tick > current_tick) | 60 | if (new_tick > current_tick) |
61 | { | 61 | { |
62 | sim_tick_tasks(); | ||
62 | current_tick = new_tick; | 63 | current_tick = new_tick; |
63 | button_tick(); /* Dirty call to button.c. This should probably | ||
64 | * be implemented as a tick task the same way | ||
65 | * as on the target. */ | ||
66 | } | 64 | } |
67 | } | 65 | } |
68 | } | 66 | } |