Skip to content

Commit

Permalink
Launcher: Removed bogus allocation in gui_init
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Jul 22, 2024
1 parent 2be65bb commit 23c5cfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions launcher/main/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ void gui_init(bool cold_boot)
.scroll_mode = rg_settings_get_number(NS_APP, SETTING_SCROLL_MODE, SCROLL_MODE_CENTER),
.width = rg_display_get_info()->screen.width,
.height = rg_display_get_info()->screen.height,
.surface = rg_surface_create(gui.width, gui.height, RG_PIXEL_565_LE, MEM_SLOW),
};
// Auto: Show carousel on cold boot, browser on warm boot (after cleanly exiting an emulator)
gui.browse = gui.start_screen == START_SCREEN_BROWSER || (gui.start_screen == START_SCREEN_AUTO && !cold_boot);
gui_update_theme();
gui.surface = rg_surface_create(gui.width, gui.height, RG_PIXEL_565_LE, MEM_SLOW);
gui_update_theme();
}

void gui_event(gui_event_t event, tab_t *tab)
Expand Down

0 comments on commit 23c5cfb

Please sign in to comment.