mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-09 15:42:58 -04:00
Application main() refactoring to group relevant bits.
This commit is contained in:
parent
1713c82841
commit
02aab9b4e2
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue