omit redraw_all to fix to be ignored first push

This commit is contained in:
TT 2017-09-16 04:11:18 +09:00
parent c121731b04
commit 8ce6b7b6e0
3 changed files with 13 additions and 5 deletions

View file

@ -205,6 +205,7 @@ typedef struct {
void plot_init(void);
void update_grid(void);
void clear_screen(void);
void redraw(void);
void redraw_all(void);
void force_draw_cells(void);

6
plot.c
View file

@ -1378,6 +1378,12 @@ draw_cal_status(void)
}
void
clear_screen(void)
{
ili9341_fill(0, 0, 320, 240, 0);
}
void
redraw(void)
{

11
ui.c
View file

@ -467,7 +467,7 @@ menu_trace_cb(int item)
uistat.current_trace = item;
menu_move_back();
ui_mode_normal();
redraw_all();
//redraw_all();
}
}
@ -493,7 +493,7 @@ menu_format_cb(int item)
}
ui_mode_normal();
redraw_all();
//redraw_all();
}
static void
@ -566,7 +566,7 @@ menu_trace_op_cb(int item)
}
menu_move_back();
ui_mode_normal();
redraw_all();
//redraw_all();
}
static void
@ -623,7 +623,7 @@ menu_marker_op_cb(int item)
break;
}
ui_mode_normal();
redraw_all();
//redraw_all();
}
static void
@ -1325,8 +1325,9 @@ ui_process_keypad(void)
}
}
clear_screen();
ui_mode_normal();
redraw_all();
//redraw_all();
touch_start_watchdog();
}