summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndriy Naborskyy <andriyn@google.com>2016-01-08 19:11:41 +0100
committerAndriy Naborskyy <andriyn@google.com>2016-01-08 19:15:57 +0100
commita5d5082222b7420801cdb77f09305dd4c3afb4db (patch)
tree0b342f5938b9d0c64f962e6b93c406773ebd08b5
parentam 838768ca: am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGE (diff)
downloadandroid_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.gz
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.bz2
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.lz
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.xz
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.tar.zst
android_bootable_recovery-a5d5082222b7420801cdb77f09305dd4c3afb4db.zip
-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.