aboutsummaryrefslogtreecommitdiffstats
path: root/ui.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2012-11-28 12:12:29 -0800
committerKoushik Dutta <koushd@gmail.com>2012-11-28 12:12:29 -0800
commitc908d3b8cc89a49ff71450484f4377344c4937b0 (patch)
treea28096d54f1dc62bf47fa676892db4f86c021a6f /ui.c
parent7322ac1f328a4b5916e4641ce55ab924d3b7ecee (diff)
downloadbootable_recovery-c908d3b8cc89a49ff71450484f4377344c4937b0.zip
bootable_recovery-c908d3b8cc89a49ff71450484f4377344c4937b0.tar.gz
bootable_recovery-c908d3b8cc89a49ff71450484f4377344c4937b0.tar.bz2
Fix bug in ui_copy_image reported in:
https://github.com/CyanogenMod/android_bootable_recovery/commit/107629b02d49fa69b25c414f445e823e1e4bbec3#commitcomment-2219143 Change-Id: Ib3041aba7461d4e139c37e150e63b7d47768563b
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 8dce895..b536c0c 100644
--- a/ui.c
+++ b/ui.c
@@ -579,7 +579,7 @@ void ui_init(void)
char *ui_copy_image(int icon, int *width, int *height, int *bpp) {
pthread_mutex_lock(&gUpdateMutex);
- draw_background_locked(gBackgroundIcon[icon]);
+ draw_background_locked(icon);
*width = gr_fb_width();
*height = gr_fb_height();
*bpp = sizeof(gr_pixel) * 8;