mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 14:18:35 -07:00
Fix variable item list centered scrolling text
This commit is contained in:
@@ -94,14 +94,15 @@ static void variable_item_list_draw_callback(Canvas* canvas, void* _model) {
|
|||||||
canvas_draw_str(canvas, 73, item_text_y, "<");
|
canvas_draw_str(canvas, 73, item_text_y, "<");
|
||||||
}
|
}
|
||||||
|
|
||||||
elements_scrollable_text_line(
|
elements_scrollable_text_line_centered(
|
||||||
canvas,
|
canvas,
|
||||||
(115 + 73) / 2 + 1,
|
(115 + 73) / 2 + 1,
|
||||||
item_text_y,
|
item_text_y,
|
||||||
37,
|
37,
|
||||||
item->current_value_text,
|
item->current_value_text,
|
||||||
scroll_counter,
|
scroll_counter,
|
||||||
false);
|
false,
|
||||||
|
true);
|
||||||
|
|
||||||
if(item->current_value_index < (item->values_count - 1)) {
|
if(item->current_value_index < (item->values_count - 1)) {
|
||||||
canvas_draw_str(canvas, 115, item_text_y, ">");
|
canvas_draw_str(canvas, 115, item_text_y, ">");
|
||||||
|
|||||||
Reference in New Issue
Block a user