diff options
author | Steve Kondik <steve@cyngn.com> | 2015-03-30 04:26:56 -0700 |
---|---|---|
committer | Tom Marshall <tdm@cyngn.com> | 2015-11-25 15:35:47 -0800 |
commit | fb1db30c09b083bebe33b81f4f6771aed21399f7 (patch) | |
tree | 52f62d9165b2dd7b0cef097fb0cccad96071dde4 /recovery.cpp | |
parent | f028ccd3443a4526c245c8c664b37588be301eb2 (diff) | |
download | bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.zip bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.tar.gz bootable_recovery-fb1db30c09b083bebe33b81f4f6771aed21399f7.tar.bz2 |
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
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recovery.cpp b/recovery.cpp index a4a4a64..cdf1de3 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -557,6 +557,9 @@ static bool erase_volume(const char* volume, bool force = false) { saved_log_file* head = NULL; + ui->SetBackground(RecoveryUI::ERASING); + ui->SetProgressType(RecoveryUI::INDETERMINATE); + if (!force && is_cache) { // If we're reformatting /cache, we load any past logs // (i.e. "/cache/recovery/last_*") and the current log @@ -604,9 +607,6 @@ static bool erase_volume(const char* volume, bool force = false) { ui->Print("Formatting %s...\n", volume); - ui->SetBackground(RecoveryUI::ERASING); - ui->SetProgressType(RecoveryUI::INDETERMINATE); - if (volume[0] == '/') { ensure_path_unmounted(volume); } @@ -1038,7 +1038,7 @@ prompt_and_wait(Device* device, int status) { switch (status) { case INSTALL_SUCCESS: case INSTALL_NONE: - ui->SetBackground(RecoveryUI::NO_COMMAND); + ui->SetBackground(RecoveryUI::NONE); break; case INSTALL_ERROR: |