From 6809c51f8db86f1ab00a076cf570439d11920d3a Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 1 Mar 2011 14:04:34 -0800 Subject: make recovery UI images more general; allow for installation animation Change some of the UI parameters (# of indeterminate progress bar frames, fps, etc.) from #defined constants to variables that can be set by the device-specific recovery_ui code (via a new function). Support overlaying different images on top of the base installation icon to animate it. Make the FPS control more accurate. Change-Id: I9268b389b7ea6b3ed9e0c7eae37baf4272e60edd --- common.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index e6e8f85..cba4c86 100644 --- a/common.h +++ b/common.h @@ -107,4 +107,23 @@ typedef struct { // (that much). } Volume; +typedef struct { + // number of frames in indeterminate progress bar animation + int indeterminate_frames; + + // number of frames per second to try to maintain when animating + int update_fps; + + // number of frames in installing animation. may be zero for a + // static installation icon. + int installing_frames; + + // the install icon is animated by drawing images containing the + // changing part over the base icon. These specify the + // coordinates of the upper-left corner. + int install_overlay_offset_x; + int install_overlay_offset_y; + +} UIParameters; + #endif // RECOVERY_COMMON_H -- cgit v1.1