diff options
author | Doug Zongker <dougz@android.com> | 2011-03-01 14:04:34 -0800 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-03-01 14:04:34 -0800 |
commit | 6809c51f8db86f1ab00a076cf570439d11920d3a (patch) | |
tree | 1c00a572803d0c73f7935855681f31969b527151 /minui | |
parent | c007b961d7ed28388fca00a779b846b8646a9cf8 (diff) | |
download | bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.zip bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.gz bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.bz2 |
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
Diffstat (limited to 'minui')
-rw-r--r-- | minui/resources.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/minui/resources.c b/minui/resources.c index 3d2c727..2170dca 100644 --- a/minui/resources.c +++ b/minui/resources.c @@ -49,6 +49,8 @@ int res_create_surface(const char* name, gr_surface* pSurface) { png_structp png_ptr = NULL; png_infop info_ptr = NULL; + *pSurface = NULL; + snprintf(resPath, sizeof(resPath)-1, "/res/images/%s.png", name); resPath[sizeof(resPath)-1] = '\0'; FILE* fp = fopen(resPath, "rb"); |