mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-08 19:57:44 +00:00
Application main() refactoring to group relevant bits.
This commit is contained in:
parent
1713c82841
commit
02aab9b4e2
@ -456,7 +456,6 @@ int main(void) {
|
|||||||
init_message_queues();
|
init_message_queues();
|
||||||
|
|
||||||
portapack::io.init();
|
portapack::io.init();
|
||||||
ui::Context context;
|
|
||||||
portapack::display.init();
|
portapack::display.init();
|
||||||
|
|
||||||
sdcStart(&SDCD1, nullptr);
|
sdcStart(&SDCD1, nullptr);
|
||||||
@ -470,9 +469,10 @@ int main(void) {
|
|||||||
|
|
||||||
events_initialize(chThdSelf());
|
events_initialize(chThdSelf());
|
||||||
|
|
||||||
|
ui::Context context;
|
||||||
ui::SystemView system_view {
|
ui::SystemView system_view {
|
||||||
context,
|
context,
|
||||||
{ 0, 0, 240, 320 }
|
portapack::display.screen_rect()
|
||||||
};
|
};
|
||||||
ui::Painter painter;
|
ui::Painter painter;
|
||||||
EventDispatcher event_dispatcher { &system_view, painter, context };
|
EventDispatcher event_dispatcher { &system_view, painter, context };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user