diff options
author | Doug Zongker <dougz@android.com> | 2014-03-07 01:16:05 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2014-03-11 19:10:00 +0100 |
commit | 39cf417e17011a72dd39acfe4cc8c90af26bdbaf (patch) | |
tree | ba41f425926bfe68baf488f8ae5b0044c2a19f73 /screen_ui.cpp | |
parent | change how recovery animation is implemented (diff) | |
download | android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar.gz android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar.bz2 android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar.lz android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar.xz android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.tar.zst android_bootable_recovery-39cf417e17011a72dd39acfe4cc8c90af26bdbaf.zip |
Diffstat (limited to '')
-rw-r--r-- | screen_ui.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index a72da58a6..c87c00ce5 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -87,7 +87,7 @@ void ScreenRecoveryUI::draw_background_locked(Icon icon) { pagesIdentical = false; gr_color(0, 0, 0, 255); - gr_fill(0, 0, gr_fb_width(), gr_fb_height()); + gr_clear(); if (icon) { gr_surface surface = backgroundIcon[icon]; @@ -203,12 +203,12 @@ void ScreenRecoveryUI::SetColor(UIElement e) { // Should only be called with updateMutex locked. void ScreenRecoveryUI::draw_screen_locked() { - draw_background_locked(currentIcon); - draw_progress_locked(); - - if (show_text) { - SetColor(TEXT_FILL); - gr_fill(0, 0, gr_fb_width(), gr_fb_height()); + if (!show_text) { + draw_background_locked(currentIcon); + draw_progress_locked(); + } else { + gr_color(0, 0, 0, 255); + gr_clear(); int y = 0; int i = 0; |