Lines Matching +full:- +full:- +full:progress
8 * http://www.apache.org/licenses/LICENSE-2.0
69 // Progress bar scope of current operation
73 // Set to 1 when both graphics pages are the same (except for the progress bar)
105 int iconX = (gr_fb_width() - iconWidth) / 2; in draw_background_locked()
106 int iconY = (gr_fb_height() - iconHeight) / 2; in draw_background_locked()
111 // Draw the progress bar (if any) on the screen. Does not flip pages.
121 int dx = (gr_fb_width() - width) / 2; in draw_progress_locked()
122 int dy = (3 * gr_fb_height() + iconHeight - 2 * height) / 4; in draw_progress_locked()
124 // Erase behind the progress bar (in case this was a progress-only update) in draw_progress_locked()
129 float progress = gProgressScopeStart + gProgress * gProgressScopeSize; in draw_progress_locked() local
130 int pos = (int) (progress * width); in draw_progress_locked()
135 if (pos < width - 1) { in draw_progress_locked()
136 gr_blit(gProgressBarEmpty, pos, 0, width - pos, height, dx + pos, dy); in draw_progress_locked()
150 gr_text(0, (row + 1)*CHAR_HEIGHT - 1, t); in draw_text_line()
181 gr_fill(0, i * CHAR_HEIGHT + CHAR_HEIGHT / 2 - 1, in draw_screen_locked()
201 // Updates only the progress bar, if possible, otherwise redraws the screen.
209 draw_progress_locked(); // Draw only the progress bar in update_progress_locked()
214 // Keeps the progress bar updated, even when the process is otherwise busy.
221 // update the progress bar animation, if active in progress_thread()
227 // move the progress bar forward on timed intervals, if configured in progress_thread()
230 int elapsed = time(NULL) - gProgressScopeTime; in progress_thread()
231 float progress = 1.0 * elapsed / duration; in progress_thread() local
232 if (progress > 1.0) progress = 1.0; in progress_thread()
233 if (progress > gProgress) { in progress_thread()
234 gProgress = progress; in progress_thread()
254 return -1; in input_callback()
271 } else if (rel_sum < -3) { in input_callback()
288 // our "fake" keys only report a key-down event (no in input_callback()
289 // key-up), so don't record them in the key_pressed in input_callback()
318 if (!ev_wait(-1)) in input_thread()
339 if (text_cols > MAX_COLS - 1) text_cols = MAX_COLS - 1; in ui_init()
345 if (result == -2) { in ui_init()
475 strncpy(menu[i], headers[i], text_cols - 1); in ui_start_menu()
476 menu[i][text_cols - 1] = '\0'; in ui_start_menu()
480 if (items[i - menu_top] == NULL) break; in ui_start_menu()
481 strncpy(menu[i], items[i - menu_top], text_cols - 1); in ui_start_menu()
482 menu[i][text_cols - 1] = '\0'; in ui_start_menu()
484 menu_items = i - menu_top; in ui_start_menu()
504 if (menu_sel >= menu_items) menu_sel = menu_items - 1; in ui_menu_select()
559 memcpy(&key_queue[0], &key_queue[1], sizeof(int) * --key_queue_len); in ui_wait_key()