diff --git a/input/input_overlay.h b/input/input_overlay.h index 03b63d0ca1..b04bda8e1a 100644 --- a/input/input_overlay.h +++ b/input/input_overlay.h @@ -94,6 +94,8 @@ enum overlay_image_transfer_status struct overlay { + unsigned id; + struct overlay_desc *descs; size_t size; size_t pos; diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 9434b44995..3aae780008 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -525,8 +525,9 @@ static void mui_render(void *data) if (settings->menu.pointer.enable) { - int16_t pointer_y = menu_input_pointer_state(MENU_POINTER_Y_AXIS); - float old_accel_val, new_accel_val; + int16_t pointer_y = menu_input_pointer_state(MENU_POINTER_Y_AXIS); + float old_accel_val = 0.0f; + float new_accel_val = 0.0f; unsigned new_pointer_val = (pointer_y - mui->line_height + mui->scroll_y - 16) / mui->line_height;