diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/lxdialog/checklist.c | 19 | 
1 files changed, 9 insertions, 10 deletions
| diff --git a/scripts/kconfig/lxdialog/checklist.c b/scripts/kconfig/lxdialog/checklist.c index db07ae73e051..be0200e9cdaf 100644 --- a/scripts/kconfig/lxdialog/checklist.c +++ b/scripts/kconfig/lxdialog/checklist.c | |||
| @@ -196,8 +196,8 @@ int dialog_checklist(const char *title, const char *prompt, int height, | |||
| 196 | 196 | ||
| 197 | print_buttons(dialog, height, width, 0); | 197 | print_buttons(dialog, height, width, 0); | 
| 198 | 198 | ||
| 199 | wnoutrefresh(list); | ||
| 200 | wnoutrefresh(dialog); | 199 | wnoutrefresh(dialog); | 
| 200 | wnoutrefresh(list); | ||
| 201 | doupdate(); | 201 | doupdate(); | 
| 202 | 202 | ||
| 203 | while (key != ESC) { | 203 | while (key != ESC) { | 
| @@ -225,12 +225,11 @@ int dialog_checklist(const char *title, const char *prompt, int height, | |||
| 225 | } | 225 | } | 
| 226 | scroll--; | 226 | scroll--; | 
| 227 | print_item(list, items[scroll * 3 + 1], status[scroll], 0, TRUE); | 227 | print_item(list, items[scroll * 3 + 1], status[scroll], 0, TRUE); | 
| 228 | wnoutrefresh(list); | ||
| 229 | |||
| 230 | print_arrows(dialog, choice, item_no, | 228 | print_arrows(dialog, choice, item_no, | 
| 231 | scroll, box_y, box_x + check_x + 5, list_height); | 229 | scroll, box_y, box_x + check_x + 5, list_height); | 
| 232 | 230 | ||
| 233 | wrefresh(dialog); | 231 | wnoutrefresh(dialog); | 
| 232 | wrefresh(list); | ||
| 234 | 233 | ||
| 235 | continue; /* wait for another key press */ | 234 | continue; /* wait for another key press */ | 
| 236 | } else | 235 | } else | 
| @@ -252,12 +251,12 @@ int dialog_checklist(const char *title, const char *prompt, int height, | |||
| 252 | scroll++; | 251 | scroll++; | 
| 253 | print_item(list, items[(scroll + max_choice - 1) * 3 + 1], | 252 | print_item(list, items[(scroll + max_choice - 1) * 3 + 1], | 
| 254 | status[scroll + max_choice - 1], max_choice - 1, TRUE); | 253 | status[scroll + max_choice - 1], max_choice - 1, TRUE); | 
| 255 | wnoutrefresh(list); | ||
| 256 | 254 | ||
| 257 | print_arrows(dialog, choice, item_no, | 255 | print_arrows(dialog, choice, item_no, | 
| 258 | scroll, box_y, box_x + check_x + 5, list_height); | 256 | scroll, box_y, box_x + check_x + 5, list_height); | 
| 259 | 257 | ||
| 260 | wrefresh(dialog); | 258 | wnoutrefresh(dialog); | 
| 259 | wrefresh(list); | ||
| 261 | 260 | ||
| 262 | continue; /* wait for another key press */ | 261 | continue; /* wait for another key press */ | 
| 263 | } else | 262 | } else | 
| @@ -271,8 +270,8 @@ int dialog_checklist(const char *title, const char *prompt, int height, | |||
| 271 | choice = i; | 270 | choice = i; | 
| 272 | print_item(list, items[(scroll + choice) * 3 + 1], | 271 | print_item(list, items[(scroll + choice) * 3 + 1], | 
| 273 | status[scroll + choice], choice, TRUE); | 272 | status[scroll + choice], choice, TRUE); | 
| 274 | wnoutrefresh(list); | 273 | wnoutrefresh(dialog); | 
| 275 | wrefresh(dialog); | 274 | wrefresh(list); | 
| 276 | } | 275 | } | 
| 277 | continue; /* wait for another key press */ | 276 | continue; /* wait for another key press */ | 
| 278 | } | 277 | } | 
| @@ -306,8 +305,8 @@ int dialog_checklist(const char *title, const char *prompt, int height, | |||
| 306 | print_item(list, items[(scroll + i) * 3 + 1], | 305 | print_item(list, items[(scroll + i) * 3 + 1], | 
| 307 | status[scroll + i], i, i == choice); | 306 | status[scroll + i], i, i == choice); | 
| 308 | } | 307 | } | 
| 309 | wnoutrefresh(list); | 308 | wnoutrefresh(dialog); | 
| 310 | wrefresh(dialog); | 309 | wrefresh(list); | 
| 311 | 310 | ||
| 312 | for (i = 0; i < item_no; i++) | 311 | for (i = 0; i < item_no; i++) | 
| 313 | if (status[i]) | 312 | if (status[i]) | 
