diff options
author | Alexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com> | 2015-04-13 18:34:20 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com> | 2015-04-13 18:34:20 +0300 |
commit | 24e89cde9edbcf31e97d5c60b44d48fa30b3d316 (patch) | |
tree | bcb0f04172e3f592715f3a6d811ba5ee33c6b236 | |
parent | 7a3fcf1763da11ceeea838b665873f192cdf971c (diff) |
-rw-r--r-- | src/dos.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -61,18 +61,6 @@ void tick(struct tm *tick_time, TimeUnits units_changed) start_draw(); } -void focus_handler(bool in_focus) { - if (in_focus) { - if (rand() % 5 == 0) // some joke :) - { - text_layer_set_text(text_layer, "C:\\>format\nc:_"); - if (timer) app_timer_cancel(timer); - time_ticks = state = 0; - timer = app_timer_register(500, app_timer, NULL); - } - } -} - void handle_init(void) { // Create a window and text layer window = window_create(); @@ -95,13 +83,6 @@ void handle_init(void) { window_stack_push(window, true); tick_timer_service_subscribe(MINUTE_UNIT, tick); - - //start_draw(); - // App Logging! - APP_LOG(APP_LOG_LEVEL_DEBUG, "Just pushed a window!"); - - srand(time(NULL)); - app_focus_service_subscribe(focus_handler); } void handle_deinit(void) { @@ -117,8 +98,6 @@ void handle_deinit(void) { // Unload font fonts_unload_custom_font(font); - - app_focus_service_unsubscribe(); } int main(void) { |