diff options
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r-- | wear_ui.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp index 71a53519..e4806718 100644 --- a/wear_ui.cpp +++ b/wear_ui.cpp | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <errno.h> | 19 | #include <errno.h> |
20 | #include <fcntl.h> | 20 | #include <fcntl.h> |
21 | #include <pthread.h> | ||
21 | #include <stdarg.h> | 22 | #include <stdarg.h> |
22 | #include <stdlib.h> | 23 | #include <stdlib.h> |
23 | #include <string.h> | 24 | #include <string.h> |
@@ -38,11 +39,6 @@ | |||
38 | #include "common.h" | 39 | #include "common.h" |
39 | #include "device.h" | 40 | #include "device.h" |
40 | 41 | ||
41 | // There's only (at most) one of these objects, and global callbacks | ||
42 | // (for pthread_create, and the input event system) need to find it, | ||
43 | // so use a global variable. | ||
44 | static WearRecoveryUI* self = NULL; | ||
45 | |||
46 | // Return the current time as a double (including fractions of a second). | 42 | // Return the current time as a double (including fractions of a second). |
47 | static double now() { | 43 | static double now() { |
48 | struct timeval tv; | 44 | struct timeval tv; |
@@ -63,8 +59,6 @@ WearRecoveryUI::WearRecoveryUI() | |||
63 | touch_screen_allowed_ = true; | 59 | touch_screen_allowed_ = true; |
64 | 60 | ||
65 | for (size_t i = 0; i < 5; i++) backgroundIcon[i] = NULL; | 61 | for (size_t i = 0; i < 5; i++) backgroundIcon[i] = NULL; |
66 | |||
67 | self = this; | ||
68 | } | 62 | } |
69 | 63 | ||
70 | int WearRecoveryUI::GetProgressBaseline() const { | 64 | int WearRecoveryUI::GetProgressBaseline() const { |