summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorAndriy Naborskyy <andriyn@google.com>2016-01-12 20:16:25 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-01-12 20:16:25 +0100
commit40cce13094cc7cabebe9577f6bb849dcb46b9d81 (patch)
tree30f582403c4dc49728234b9068e08388f434cc47 /minui
parentupdate_verifier: Log to logd instead of kernel log. (diff)
parentRevert "Byte swap to support BGRA in recovery mode" (diff)
downloadandroid_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar.gz
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar.bz2
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar.lz
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar.xz
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.tar.zst
android_bootable_recovery-40cce13094cc7cabebe9577f6bb849dcb46b9d81.zip
Diffstat (limited to 'minui')
-rw-r--r--minui/graphics_fbdev.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp
index 997e9cac2..0788f7552 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -176,18 +176,6 @@ static GRSurface* fbdev_init(minui_backend* backend) {
static GRSurface* fbdev_flip(minui_backend* backend __unused) {
if (double_buffered) {
-#if defined(RECOVERY_BGRA)
- // In case of BGRA, do some byte swapping
- unsigned int idx;
- unsigned char tmp;
- unsigned char* ucfb_vaddr = (unsigned char*)gr_draw->data;
- for (idx = 0 ; idx < (gr_draw->height * gr_draw->row_bytes);
- idx += 4) {
- tmp = ucfb_vaddr[idx];
- ucfb_vaddr[idx ] = ucfb_vaddr[idx + 2];
- ucfb_vaddr[idx + 2] = tmp;
- }
-#endif
// Change gr_draw to point to the buffer currently displayed,
// then flip the driver so we're displaying the other buffer
// instead.