summaryrefslogtreecommitdiff
path: root/apps/gui/quickscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/quickscreen.c')
-rw-r--r--apps/gui/quickscreen.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c
index cda6e7aa51..310d48041f 100644
--- a/apps/gui/quickscreen.c
+++ b/apps/gui/quickscreen.c
@@ -55,7 +55,6 @@ static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * di
55 #define PUTSXY_CENTER (display->height/2) 55 #define PUTSXY_CENTER (display->height/2)
56 #define PUTSXY_BOTTOM (display->height) 56 #define PUTSXY_BOTTOM (display->height)
57 57
58 char buffer[30];
59 const unsigned char *option; 58 const unsigned char *option;
60 const unsigned char *title; 59 const unsigned char *title;
61 int w, font_h; 60 int w, font_h;
@@ -71,8 +70,7 @@ static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * di
71 display->getstringsize("A", NULL, &font_h); 70 display->getstringsize("A", NULL, &font_h);
72 71
73 /* Displays the first line of text */ 72 /* Displays the first line of text */
74 option=(unsigned char *)option_select_get_text(qs->left_option, buffer, 73 option=(unsigned char *)option_select_get_text(qs->left_option);
75 sizeof buffer);
76 title=(unsigned char *)qs->left_option->title; 74 title=(unsigned char *)qs->left_option->title;
77 display->puts_scroll(2, PUTS_CENTER-4+!statusbar, title); 75 display->puts_scroll(2, PUTS_CENTER-4+!statusbar, title);
78 display->puts_scroll(2, PUTS_CENTER-3+!statusbar, option); 76 display->puts_scroll(2, PUTS_CENTER-3+!statusbar, option);
@@ -80,8 +78,7 @@ static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * di
80 PUTSXY_CENTER-(font_h*3), 7, 8); 78 PUTSXY_CENTER-(font_h*3), 7, 8);
81 79
82 /* Displays the second line of text */ 80 /* Displays the second line of text */
83 option=(unsigned char *)option_select_get_text(qs->right_option, buffer, 81 option=(unsigned char *)option_select_get_text(qs->right_option);
84 sizeof buffer);
85 title=(unsigned char *)qs->right_option->title; 82 title=(unsigned char *)qs->right_option->title;
86 display->getstringsize(title, &w, NULL); 83 display->getstringsize(title, &w, NULL);
87 if(w > display->width - 8) 84 if(w > display->width - 8)
@@ -103,8 +100,7 @@ static void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * di
103 display->putsxy(display->width -w-12, PUTSXY_CENTER, option); 100 display->putsxy(display->width -w-12, PUTSXY_CENTER, option);
104 101
105 /* Displays the third line of text */ 102 /* Displays the third line of text */
106 option=(unsigned char *)option_select_get_text(qs->bottom_option, buffer, 103 option=(unsigned char *)option_select_get_text(qs->bottom_option);
107 sizeof buffer);
108 title=(unsigned char *)qs->bottom_option->title; 104 title=(unsigned char *)qs->bottom_option->title;
109 105
110 display->getstringsize(title, &w, NULL); 106 display->getstringsize(title, &w, NULL);