diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-10-26 12:38:22 -0400 |
commit | 40e98a2e4915464b9306ab7b0f6feb173de095c5 (patch) | |
tree | 4e987640ae4ad201f029c4e26e51ebc61a4549b1 /apps/gui/yesno.c | |
parent | 3237ae4a4ff9296a377ff9194a11038da161208f (diff) |
Whitespace cleanup on fb_viewport Rewrite
Change-Id: I24aac41c8abecf7b78a44d7f59e842b791be4563
Diffstat (limited to 'apps/gui/yesno.c')
-rw-r--r-- | apps/gui/yesno.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index d70b66f230..e0d8ad457c 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -34,7 +34,7 @@ struct gui_yesno { const struct text_message * main_message; const struct text_message * result_message[2]; - + struct viewport *vp; struct screen * display; }; @@ -63,12 +63,12 @@ static int put_message(struct screen *display, int i; for(i=0; i<message->nb_lines && i+start<max_y; i++) { - display->puts_scroll(0, i+start, + display->puts_scroll(0, i+start, P2STR((unsigned char *)message->message_lines[i])); } return i; } - + /* * Draws the yesno * - yn : the yesno structure @@ -87,7 +87,7 @@ static void gui_yesno_draw(struct gui_yesno * yn) if(nb_lines+3< vp_lines) line_shift=1; - + line_shift += put_message(display, yn->main_message, line_shift, vp_lines); #ifdef HAVE_TOUCHSCREEN @@ -216,7 +216,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, if (global_settings.talk_menu) { - talk_text_message((result == YESNO_YES) ? yes_message + talk_text_message((result == YESNO_YES) ? yes_message : no_message, false); talk_force_enqueue_next(); } |