mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 02:45:45 +03:00
Menu: fix code formatting
This commit is contained in:
parent
357922ab14
commit
6b33e8ff61
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user