diff options
author | Doug Zongker <dougz@android.com> | 2010-11-01 18:38:12 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-11-01 18:38:12 +0100 |
commit | 8521ef5965675da85c7bbbe9c8b86fe68716e855 (patch) | |
tree | 896aac2b54a16c36c198d3cc58c2f48d77ca75b3 | |
parent | am 2c3539e4: save the log from recovery\'s last run in /cache/recovery/last_log (diff) | |
parent | clear recovery framebuffers on allocation; display icon right after ui_init (diff) | |
download | android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar.gz android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar.bz2 android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar.lz android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar.xz android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.tar.zst android_bootable_recovery-8521ef5965675da85c7bbbe9c8b86fe68716e855.zip |
-rw-r--r-- | minui/graphics.c | 3 | ||||
-rw-r--r-- | recovery.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/minui/graphics.c b/minui/graphics.c index adbfc09da..4127c400a 100644 --- a/minui/graphics.c +++ b/minui/graphics.c @@ -88,6 +88,7 @@ static int get_framebuffer(GGLSurface *fb) fb->stride = vi.xres; fb->data = bits; fb->format = GGL_PIXEL_FORMAT_RGB_565; + memset(fb->data, 0, vi.yres * vi.xres * 2); fb++; @@ -97,6 +98,7 @@ static int get_framebuffer(GGLSurface *fb) fb->stride = vi.xres; fb->data = (void*) (((unsigned) bits) + vi.yres * vi.xres * 2); fb->format = GGL_PIXEL_FORMAT_RGB_565; + memset(fb->data, 0, vi.yres * vi.xres * 2); return fd; } @@ -277,7 +279,6 @@ int gr_init(void) set_active_framebuffer(0); gl->colorBuffer(gl, &gr_mem_surface); - gl->activeTexture(gl, 0); gl->enable(gl, GGL_BLEND); gl->blendFunc(gl, GGL_SRC_ALPHA, GGL_ONE_MINUS_SRC_ALPHA); diff --git a/recovery.c b/recovery.c index 452794aff..9ad075d74 100644 --- a/recovery.c +++ b/recovery.c @@ -701,6 +701,7 @@ main(int argc, char **argv) { printf("Starting recovery on %s", ctime(&start)); ui_init(); + ui_set_background(BACKGROUND_ICON_INSTALLING); load_volume_table(); get_args(&argc, &argv); |