summaryrefslogtreecommitdiffstats
path: root/minui.old/graphics.c
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.old/graphics.c
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.old/graphics.c')
-rw-r--r--minui.old/graphics.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/minui.old/graphics.c b/minui.old/graphics.c
index cce02a963..580af297a 100644
--- a/minui.old/graphics.c
+++ b/minui.old/graphics.c
@@ -42,6 +42,9 @@
#if defined(RECOVERY_BGRA)
#define PIXEL_FORMAT GGL_PIXEL_FORMAT_BGRA_8888
#define PIXEL_SIZE 4
+#elif defined(RECOVERY_RGBA)
+#define PIXEL_FORMAT GGL_PIXEL_FORMAT_RGBA_8888
+#define PIXEL_SIZE 4
#elif defined(RECOVERY_RGBX)
#define PIXEL_FORMAT GGL_PIXEL_FORMAT_RGBX_8888
#define PIXEL_SIZE 4
@@ -111,6 +114,15 @@ static int get_framebuffer(GGLSurface *fb)
vi.blue.length = 8;
vi.transp.offset = 0;
vi.transp.length = 8;
+ } else if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_RGBA_8888) {
+ vi.red.offset = 0;
+ vi.red.length = 8;
+ vi.green.offset = 8;
+ vi.green.length = 8;
+ vi.blue.offset = 16;
+ vi.blue.length = 8;
+ vi.transp.offset = 24;
+ vi.transp.length = 8;
} else if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_RGBX_8888) {
vi.red.offset = 24;
vi.red.length = 8;