classic-lite

Minimalist rewrite of Łukasz Zalewski's "classic" pebble watchface
git clone https://git.instinctive.eu/classic-lite.git
Log | Files | Refs | README | LICENSE

commit 035c93efe761d34d0e775c23dfd65e70efb37948
parent ed27e5c8513ae9c139f3e2d61ab4c096d1fe8568
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date:   Tue, 15 Dec 2015 18:26:34 +0000

Remove the now-unneeded workaround for Pebble Time Round
Diffstat:
Msrc/classic-lite.c | 20--------------------
1 file changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/classic-lite.c b/src/classic-lite.c @@ -586,18 +586,6 @@ update_text_layer(struct tm *time) { * SERVICE HANDLERS * ********************/ -#ifdef PBL_ROUND -static void -app_did_focus(bool in_focus) { - if (in_focus) { - layer_mark_dirty(background_layer); - layer_mark_dirty(hand_layer); - layer_mark_dirty(icon_layer); - layer_mark_dirty(text_layer_get_layer(text_layer)); - } -} -#endif - static void battery_handler(BatteryChargeState charge) { if (current_battery == charge.charge_percent) return; @@ -778,18 +766,10 @@ window_load(Window *window) { hand_layer = layer_create(bounds); layer_set_update_proc(hand_layer, &hand_layer_draw); layer_add_child(window_layer, hand_layer); - -#ifdef PBL_ROUND - app_focus_service_subscribe_handlers((AppFocusHandlers){ - .will_focus = 0, - .did_focus = &app_did_focus, - }); -#endif } static void window_unload(Window *window) { - app_focus_service_unsubscribe(); layer_destroy(background_layer); layer_destroy(hand_layer); layer_destroy(icon_layer);