Skip to content

Commit 5338c2b

Browse files
author
David Lee
committed
Fixed redraw issue by Willy-JL
1 parent e5d8376 commit 5338c2b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scenes/color_guess_scene_play.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ bool color_guess_scene_play_on_event(void* context, SceneManagerEvent event) {
3939
consumed = true;
4040
break;
4141
}
42+
} else if(event.type == SceneManagerEventTypeTick) {
43+
// Redraw on tick event to update timer
44+
with_view_model(
45+
color_guess_play_get_view(app->color_guess_play),
46+
void* model,
47+
{ UNUSED(model); },
48+
true);
4249
}
4350

4451
return consumed;

0 commit comments

Comments
 (0)