diff options
author | Doug Zongker <dougz@google.com> | 2012-08-22 17:26:40 -0700 |
---|---|---|
committer | Doug Zongker <dougz@google.com> | 2012-08-22 17:26:40 -0700 |
commit | 02ec6b88ed4e6cf40cc257572b07c7277b7b6341 (patch) | |
tree | 2aa6f95cb875d258f62a5342ec2bb1ad0093e3bd /screen_ui.h | |
parent | a3ccba6d314cb29b02d1dbda9a71427b11da936d (diff) | |
download | bootable_recovery-02ec6b88ed4e6cf40cc257572b07c7277b7b6341.zip bootable_recovery-02ec6b88ed4e6cf40cc257572b07c7277b7b6341.tar.gz bootable_recovery-02ec6b88ed4e6cf40cc257572b07c7277b7b6341.tar.bz2 |
add simple text to recovery UI
- recovery takes a --locale argument, which will be passed by the main
system
- the locale is saved in cache, in case the --locale argument is
missing (eg, when recovery is started from fastboot)
- we include images that have prerendered text for many locales
- we split the background states into four (installing update,
erasing, no command, error) so that appropriate text can be shown.
Change-Id: I731b8108e83d5ccc09a4aacfc1dbf7e86b397aaf
Diffstat (limited to 'screen_ui.h')
-rw-r--r-- | screen_ui.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h index 34929ee..16ee741 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -57,7 +57,8 @@ class ScreenRecoveryUI : public RecoveryUI { int installingFrame; pthread_mutex_t updateMutex; - gr_surface backgroundIcon[3]; + gr_surface backgroundIcon[5]; + gr_surface backgroundText[5]; gr_surface *installationOverlay; gr_surface *progressBarIndeterminate; gr_surface progressBarEmpty; @@ -92,6 +93,7 @@ class ScreenRecoveryUI : public RecoveryUI { int indeterminate_frames; int installing_frames; int install_overlay_offset_x, install_overlay_offset_y; + int overlay_offset_x, overlay_offset_y; void draw_install_overlay_locked(int frame); void draw_background_locked(Icon icon); @@ -104,7 +106,7 @@ class ScreenRecoveryUI : public RecoveryUI { void progress_loop(); void LoadBitmap(const char* filename, gr_surface* surface); - + void LoadLocalizedBitmap(const char* filename, gr_surface* surface); }; #endif // RECOVERY_UI_H |