summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-01-20 21:30:28 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-01-21 15:23:09 +0100
commitb386f710783deae31123dcc4985673e62719256c (patch)
tree02084dee8d0af5781f889978db0297d263085d77 /minui
parentTry mounting different filesystems during decryption (diff)
downloadandroid_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar.gz
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar.bz2
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar.lz
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar.xz
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.tar.zst
android_bootable_recovery-b386f710783deae31123dcc4985673e62719256c.zip
Diffstat (limited to 'minui')
-rw-r--r--minui/Android.mk4
-rw-r--r--minui/graphics.cpp8
2 files changed, 7 insertions, 5 deletions
diff --git a/minui/Android.mk b/minui/Android.mk
index 1faaf6dcc..09409a45f 100644
--- a/minui/Android.mk
+++ b/minui/Android.mk
@@ -6,13 +6,13 @@ LOCAL_SRC_FILES := \
graphics.cpp \
graphics_drm.cpp \
graphics_fbdev.cpp \
- resources.cpp \
- graphics_overlay.cpp
+ resources.cpp
LOCAL_C_INCLUDES := external/libcxx/include external/libpng
ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
LOCAL_CFLAGS += -DMSM_BSP
+ LOCAL_SRC_FILES += graphics_overlay.cpp
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index 93b70da25..244db3c5d 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -477,6 +477,7 @@ int gr_init(void)
gr_init_font();
gr_draw = NULL;
+#ifdef MSM_BSP
gr_backend = open_overlay();
if (gr_backend) {
gr_draw = gr_backend->init(gr_backend);
@@ -485,9 +486,10 @@ int gr_init(void)
} else
printf("Using overlay graphics.\n");
}
+#endif
#ifndef MSM_BSP
- if (!gr_draw) {
+ if (!gr_backend || !gr_draw) {
gr_backend = open_adf();
if (gr_backend) {
gr_draw = gr_backend->init(gr_backend);
@@ -501,14 +503,14 @@ int gr_init(void)
printf("Skipping adf graphics because TW_TARGET_USES_QCOM_BSP := true\n");
#endif
- if (!gr_draw) {
+ if (!gr_backend || !gr_draw) {
gr_backend = open_drm();
gr_draw = gr_backend->init(gr_backend);
if (gr_draw)
printf("Using drm graphics.\n");
}
- if (!gr_draw) {
+ if (!gr_backend || !gr_draw) {
gr_backend = open_fbdev();
gr_draw = gr_backend->init(gr_backend);
if (gr_draw == NULL) {