summaryrefslogtreecommitdiffstats
path: root/minui/graphics_drm.cpp
diff options
context:
space:
mode:
authorKra1o5 <kra1o5x@gmail.com>2015-10-14 18:09:54 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-10-14 20:32:03 +0200
commit7756859abe7db5f5ac099adb08822207ec414149 (patch)
tree6d4b8cce0e8a9fddee8c60df26fb4577e0cf1900 /minui/graphics_drm.cpp
parentAdd qcom overlay graphics support to minui (diff)
downloadandroid_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar.gz
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar.bz2
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar.lz
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar.xz
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.tar.zst
android_bootable_recovery-7756859abe7db5f5ac099adb08822207ec414149.zip
Diffstat (limited to 'minui/graphics_drm.cpp')
-rw-r--r--minui/graphics_drm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/minui/graphics_drm.cpp b/minui/graphics_drm.cpp
index 03e33b775..ddda18721 100644
--- a/minui/graphics_drm.cpp
+++ b/minui/graphics_drm.cpp
@@ -117,6 +117,7 @@ static int drm_format_to_bpp(uint32_t format) {
case DRM_FORMAT_RGBX8888:
case DRM_FORMAT_BGRX8888:
case DRM_FORMAT_XBGR8888:
+ case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
return 32;
case DRM_FORMAT_RGB565:
@@ -143,6 +144,8 @@ static drm_surface *drm_create_surface(int width, int height) {
format = DRM_FORMAT_RGBA8888;
#elif defined(RECOVERY_BGRA)
format = DRM_FORMAT_ARGB8888;
+#elif defined(RECOVERY_RGBA)
+ format = DRM_FORMAT_ABGR8888;
#elif defined(RECOVERY_RGBX)
format = DRM_FORMAT_XBGR8888;
#else