mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-19 12:24:18 -04:00
Move LCD display object to portapack namespace.
Globals are bad... Except in embedded development!
This commit is contained in:
parent
fecbb7205e
commit
65d5f68bfb
9 changed files with 26 additions and 29 deletions
|
@ -486,7 +486,7 @@ int main(void) {
|
|||
|
||||
portapack::io.init();
|
||||
ui::Context context;
|
||||
context.display.init();
|
||||
portapack::display.init();
|
||||
|
||||
sdcStart(&SDCD1, nullptr);
|
||||
|
||||
|
@ -503,7 +503,7 @@ int main(void) {
|
|||
context,
|
||||
{ 0, 0, 240, 320 }
|
||||
};
|
||||
ui::Painter painter { context.display };
|
||||
ui::Painter painter;
|
||||
EventDispatcher event_dispatcher { &system_view, painter, context };
|
||||
|
||||
context.message_map[Message::ID::FSKPacket] = [](const Message* const p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue