From fb1db30c09b083bebe33b81f4f6771aed21399f7 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Mon, 30 Mar 2015 04:26:56 -0700 Subject: sr: Fix all the graphics issues * Get rid of all the jank and flicker. * Fix preserved backbuffer * Simplify the code, all drawing happens on a single thread now. Change-Id: I36e1deee0663defd8aea1eba985e3ecbd408eac0 --- screen_ui.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'screen_ui.h') diff --git a/screen_ui.h b/screen_ui.h index b03b6ef..df77e8b 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -84,6 +84,8 @@ class ScreenRecoveryUI : public RecoveryUI { bool rtl_locale; pthread_mutex_t updateMutex; + pthread_cond_t progressCondition; + GRSurface* headerIcon; GRSurface* backgroundIcon[NR_ICONS]; GRSurface* backgroundText[NR_ICONS]; @@ -146,6 +148,8 @@ class ScreenRecoveryUI : public RecoveryUI { int header_height_, header_width_; int text_first_row_; + bool update_waiting; + void draw_background_locked(Icon icon); void draw_progress_locked(); int draw_header_icon(); @@ -153,7 +157,6 @@ class ScreenRecoveryUI : public RecoveryUI { void draw_dialog(); void draw_screen_locked(); void update_screen_locked(); - void update_progress_locked(); static void* ProgressThreadStartRoutine(void* data); void ProgressThreadLoop(); -- cgit v1.1