mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
Used array lenght to hide right arrow
This commit is contained in:
parent
884a751ae7
commit
a5d92d7a08
@ -48,7 +48,8 @@ static void hid_mouse_jiggler_draw_callback(Canvas* canvas, void* context) {
|
||||
elements_multiline_text(canvas, AlignLeft, 26, "Interval (ms):");
|
||||
canvas_set_font(canvas, FontSecondary);
|
||||
if(model->interval_idx != 0) canvas_draw_icon(canvas, 74, 19, &I_ButtonLeft_4x7);
|
||||
if(model->interval_idx != 5) canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||
if(model->interval_idx != LENGTH(intervals) - 1)
|
||||
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||
elements_multiline_text(canvas, 91, 26, string_get_cstr(interval_str));
|
||||
|
||||
canvas_set_font(canvas, FontPrimary);
|
||||
|
@ -38,7 +38,8 @@ static void hid_mouse_jiggler_draw_callback(Canvas* canvas, void* context) {
|
||||
elements_multiline_text(canvas, AlignLeft, 26, "Interval (ms):");
|
||||
canvas_set_font(canvas, FontSecondary);
|
||||
if(model->interval_idx != 0) canvas_draw_icon(canvas, 74, 19, &I_ButtonLeft_4x7);
|
||||
if(model->interval_idx != 5) canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||
if(model->interval_idx != LENGTH(intervals) - 1)
|
||||
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||
elements_multiline_text(canvas, 91, 26, string_get_cstr(interval_str));
|
||||
|
||||
canvas_set_font(canvas, FontPrimary);
|
||||
|
Loading…
Reference in New Issue
Block a user