aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-03-10 19:14:01 -0800
committerSteve Kondik <steve@cyngn.com>2016-03-11 16:57:52 -0800
commitbc9052a7d47c1e077762cbbc23e9a05bcf1dfe63 (patch)
tree17e70975ca394c6f88615948c6879a624eac89d5 /minui
parent1faa075303d57fada9f86984a60a97772d128b75 (diff)
parenta5d5082222b7420801cdb77f09305dd4c3afb4db (diff)
downloadbootable_recovery-bc9052a7d47c1e077762cbbc23e9a05bcf1dfe63.zip
bootable_recovery-bc9052a7d47c1e077762cbbc23e9a05bcf1dfe63.tar.gz
bootable_recovery-bc9052a7d47c1e077762cbbc23e9a05bcf1dfe63.tar.bz2
Merge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/bootable/recovery into cm-13.0
Android 6.0.1 release 22 Change-Id: I9a9bddd7f1d8dfc8cb91f4fe8d57e2d3df41f6eb
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 c94b581..b017ff2 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -182,18 +182,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.