mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-11 22:42:27 +00:00
Fixed Pacman global object initialization (#1891)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user