summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2014-03-11 22:55:47 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-11 22:55:48 +0100
commitc91612d4668688c5d7bf76c258c11010697a03d2 (patch)
tree5d3e2eb928250e33d7b6580e0ac80fd2404898ab /screen_ui.cpp
parentMerge "update tools for making recovery images" (diff)
parentremove pixelflinger from recovery (diff)
downloadandroid_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar.gz
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar.bz2
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar.lz
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar.xz
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.tar.zst
android_bootable_recovery-c91612d4668688c5d7bf76c258c11010697a03d2.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 38b21f84c..589c935dc 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -84,7 +84,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];
@@ -187,12 +187,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;