aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorArnav Gupta <championswimmer@gmail.com>2016-02-06 22:15:14 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-06 15:10:29 -0800
commit5e36ad0a45f33b688f80fc8ea30ac7e71b5d7724 (patch)
treeaed1c285b85107cc0b54567c9c3955bb03db7ea5 /minui
parent86d2b3f87ac8377bb57cba6e93334559d41bed99 (diff)
downloadbootable_recovery-5e36ad0a45f33b688f80fc8ea30ac7e71b5d7724.zip
bootable_recovery-5e36ad0a45f33b688f80fc8ea30ac7e71b5d7724.tar.gz
bootable_recovery-5e36ad0a45f33b688f80fc8ea30ac7e71b5d7724.tar.bz2
minui: accept RGBA and treat it as RGBX
There are devices with RGBA_8888 pixel format. There are also recoveries like TWRP that have alpha support and hence for a RGBA device, I expect to be able to set TARGET_RECOVERY_PIXEL_FORMAT = RGBA_8888 It should be supported on BoardConfig to set the correct PixelFormat for a device. Although recovery does not have alpha, so it can consider RGBA devices as RGBX, but it could do so in future. Change-Id: Id1f3b2fbfc8ad4cf0422614580e420196614f792 Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
Diffstat (limited to 'minui')
-rw-r--r--minui/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/minui/Android.mk b/minui/Android.mk
index dd64cc6..e74c7be 100644
--- a/minui/Android.mk
+++ b/minui/Android.mk
@@ -27,6 +27,9 @@ endif
ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
LOCAL_CFLAGS += -DRECOVERY_RGBX
endif
+ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBA_8888)
+ LOCAL_CFLAGS += -DRECOVERY_RGBX
+endif
ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
LOCAL_CFLAGS += -DRECOVERY_BGRA
endif