diff --git a/firmware/application/external/external.cmake b/firmware/application/external/external.cmake index 028287d1..c4fc0c4c 100644 --- a/firmware/application/external/external.cmake +++ b/firmware/application/external/external.cmake @@ -1,8 +1,8 @@ set(EXTCPPSRC #pacman -# external/pacman/main.cpp -# external/pacman/ui_pacman.cpp + external/pacman/main.cpp + external/pacman/ui_pacman.cpp #tetris external/tetris/main.cpp @@ -65,7 +65,7 @@ set(EXTCPPSRC ) set(EXTAPPLIST -# pacman + pacman afsk_rx calculator font_viewer diff --git a/firmware/application/external/pacman/ui_pacman.cpp b/firmware/application/external/pacman/ui_pacman.cpp index c31b8938..f98f039d 100644 --- a/firmware/application/external/pacman/ui_pacman.cpp +++ b/firmware/application/external/pacman/ui_pacman.cpp @@ -13,8 +13,6 @@ namespace ui::external_app::pacman { #include "playfield.hpp" #pragma GCC diagnostic pop -Playfield _game; - PacmanView::PacmanView(NavigationView& nav) : nav_(nav) { add_children({&dummy}); @@ -26,6 +24,7 @@ void PacmanView::focus() { void PacmanView::paint(Painter& painter) { (void)painter; + static Playfield _game; if (!initialized) { initialized = true;