diff options
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 | |||
34 | { | 34 | { |
35 | const struct text_message * main_message; | 35 | const struct text_message * main_message; |
36 | const struct text_message * result_message[2]; | 36 | const struct text_message * result_message[2]; |
37 | 37 | ||
38 | struct viewport *vp; | 38 | struct viewport *vp; |
39 | struct screen * display; | 39 | struct screen * display; |
40 | }; | 40 | }; |
@@ -63,12 +63,12 @@ static int put_message(struct screen *display, | |||
63 | int i; | 63 | int i; |
64 | for(i=0; i<message->nb_lines && i+start<max_y; i++) | 64 | for(i=0; i<message->nb_lines && i+start<max_y; i++) |
65 | { | 65 | { |
66 | display->puts_scroll(0, i+start, | 66 | display->puts_scroll(0, i+start, |
67 | P2STR((unsigned char *)message->message_lines[i])); | 67 | P2STR((unsigned char *)message->message_lines[i])); |
68 | } | 68 | } |
69 | return i; | 69 | return i; |
70 | } | 70 | } |
71 | 71 | ||
72 | /* | 72 | /* |
73 | * Draws the yesno | 73 | * Draws the yesno |
74 | * - yn : the yesno structure | 74 | * - yn : the yesno structure |
@@ -87,7 +87,7 @@ static void gui_yesno_draw(struct gui_yesno * yn) | |||
87 | 87 | ||
88 | if(nb_lines+3< vp_lines) | 88 | if(nb_lines+3< vp_lines) |
89 | line_shift=1; | 89 | line_shift=1; |
90 | 90 | ||
91 | line_shift += put_message(display, yn->main_message, | 91 | line_shift += put_message(display, yn->main_message, |
92 | line_shift, vp_lines); | 92 | line_shift, vp_lines); |
93 | #ifdef HAVE_TOUCHSCREEN | 93 | #ifdef HAVE_TOUCHSCREEN |
@@ -216,7 +216,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, | |||
216 | 216 | ||
217 | if (global_settings.talk_menu) | 217 | if (global_settings.talk_menu) |
218 | { | 218 | { |
219 | talk_text_message((result == YESNO_YES) ? yes_message | 219 | talk_text_message((result == YESNO_YES) ? yes_message |
220 | : no_message, false); | 220 | : no_message, false); |
221 | talk_force_enqueue_next(); | 221 | talk_force_enqueue_next(); |
222 | } | 222 | } |