summaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-03-02 19:38:02 +0100
committerDoug Zongker <dougz@android.com>2011-03-02 19:38:02 +0100
commitbe6d4d10529860037c165e4441a2d23f539e7b00 (patch)
treece15de15a5f1dab086f5a381993f44df966a3b92 /ui.c
parentmake recovery UI images more general; allow for installation animation (diff)
downloadandroid_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar.gz
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar.bz2
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar.lz
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar.xz
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.tar.zst
android_bootable_recovery-be6d4d10529860037c165e4441a2d23f539e7b00.zip
Diffstat (limited to '')
-rw-r--r--ui.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/ui.c b/ui.c
index 054e53f60..5a2a83715 100644
--- a/ui.c
+++ b/ui.c
@@ -39,10 +39,10 @@
#define UI_WAIT_KEY_TIMEOUT_SEC 120
UIParameters ui_parameters = {
- 6, // indeterminate progress bar frames
- 15, // fps
- 0, // installation icon frames (0 == static image)
- 0, 0, // installation icon overlay offset
+ 6, // indeterminate progress bar frames
+ 20, // fps
+ 7, // installation icon frames (0 == static image)
+ 23, 83, // installation icon overlay offset
};
static pthread_mutex_t gUpdateMutex = PTHREAD_MUTEX_INITIALIZER;
@@ -386,10 +386,8 @@ void ui_init(void)
sizeof(gr_surface));
for (i = 0; i < ui_parameters.indeterminate_frames; ++i) {
char filename[40];
- // "indeterminateN" if fewer than 10 frames, else "indeterminateNN".
- sprintf(filename, "indeterminate%0*d",
- ui_parameters.indeterminate_frames < 10 ? 1 : 2,
- i+1);
+ // "indeterminate01.png", "indeterminate02.png", ...
+ sprintf(filename, "indeterminate%02d", i+1);
int result = res_create_surface(filename, gProgressBarIndeterminate+i);
if (result < 0) {
LOGE("Missing bitmap %s\n(Code %d)\n", filename, result);
@@ -401,9 +399,9 @@ void ui_init(void)
sizeof(gr_surface));
for (i = 0; i < ui_parameters.installing_frames; ++i) {
char filename[40];
- sprintf(filename, "icon_installing_overlay%0*d",
- ui_parameters.installing_frames < 10 ? 1 : 2,
- i+1);
+ // "icon_installing_overlay01.png",
+ // "icon_installing_overlay02.png", ...
+ sprintf(filename, "icon_installing_overlay%02d", i+1);
int result = res_create_surface(filename, gInstallationOverlay+i);
if (result < 0) {
LOGE("Missing bitmap %s\n(Code %d)\n", filename, result);