summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-12 18:42:11 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-12 18:42:11 +0100
commitf8dd04e1a5f94e7accf65a5375114ac7fa73f828 (patch)
treed89e9626ae07a96f110987fc4a2dad431ae02e91 /minui/graphics_fbdev.c
parentam 5db3f978: Merge "Fix build when TARGET_USERIMAGES_USE_EXT4 is not defined" (diff)
parentMerge "Fix Droid and animation color in recovery mode" (diff)
downloadandroid_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar.gz
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar.bz2
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar.lz
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar.xz
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.tar.zst
android_bootable_recovery-f8dd04e1a5f94e7accf65a5375114ac7fa73f828.zip
Diffstat (limited to 'minui/graphics_fbdev.c')
-rw-r--r--minui/graphics_fbdev.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/minui/graphics_fbdev.c b/minui/graphics_fbdev.c
index f7954fd31..4a5b5b513 100644
--- a/minui/graphics_fbdev.c
+++ b/minui/graphics_fbdev.c
@@ -199,21 +199,8 @@ static gr_surface fbdev_flip(minui_backend* backend __unused) {
set_displayed_framebuffer(1-displayed_buffer);
} else {
// Copy from the in-memory surface to the framebuffer.
-
-#if defined(RECOVERY_BGRA)
- unsigned int idx;
- unsigned char* ucfb_vaddr = (unsigned char*)gr_framebuffer[0].data;
- unsigned char* ucbuffer_vaddr = (unsigned char*)gr_draw->data;
- for (idx = 0 ; idx < (gr_draw->height * gr_draw->row_bytes); idx += 4) {
- ucfb_vaddr[idx ] = ucbuffer_vaddr[idx + 2];
- ucfb_vaddr[idx + 1] = ucbuffer_vaddr[idx + 1];
- ucfb_vaddr[idx + 2] = ucbuffer_vaddr[idx ];
- ucfb_vaddr[idx + 3] = ucbuffer_vaddr[idx + 3];
- }
-#else
memcpy(gr_framebuffer[0].data, gr_draw->data,
gr_draw->height * gr_draw->row_bytes);
-#endif
}
return gr_draw;
}