Move LCD display object to portapack namespace.

Globals are bad... Except in embedded development!
This commit is contained in:
Jared Boone 2015-08-01 14:31:51 -07:00
parent fecbb7205e
commit 65d5f68bfb
9 changed files with 26 additions and 29 deletions

View file

@ -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) {