Menu: fix code formatting

This commit is contained in:
Aleksandr Kutuzov 2020-10-20 16:27:38 +03:00
parent 357922ab14
commit 6b33e8ff61

View File

@ -86,7 +86,7 @@ void menu_widget_callback(CanvasApi* canvas, void* context) {
canvas->set_color(canvas, ColorBlack); canvas->set_color(canvas, ColorBlack);
canvas->set_font(canvas, FontSecondary); canvas->set_font(canvas, FontSecondary);
if (MenuItemArray_size(*items)) { if(MenuItemArray_size(*items)) {
for(size_t i = 0; i < 5; i++) { for(size_t i = 0; i < 5; i++) {
size_t shift_position = i + menu->position + MenuItemArray_size(*items) - 2; size_t shift_position = i + menu->position + MenuItemArray_size(*items) - 2;
shift_position = shift_position % (MenuItemArray_size(*items)); shift_position = shift_position % (MenuItemArray_size(*items));