diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2017-01-20 21:30:28 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2017-01-21 15:23:09 +0100 |
commit | b386f710783deae31123dcc4985673e62719256c (patch) | |
tree | 02084dee8d0af5781f889978db0297d263085d77 /minuitwrp | |
parent | Try mounting different filesystems during decryption (diff) | |
download | android_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 'minuitwrp')
-rw-r--r-- | minuitwrp/Android.mk | 2 | ||||
-rw-r--r-- | minuitwrp/graphics.cpp | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 51246660b..054dd45d8 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -6,7 +6,6 @@ LOCAL_SRC_FILES := \ graphics.cpp \ graphics_fbdev.cpp \ resources.cpp \ - graphics_overlay.cpp \ truetype.cpp \ graphics_utils.cpp \ events.cpp @@ -20,6 +19,7 @@ endif 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/minuitwrp/graphics.cpp b/minuitwrp/graphics.cpp index c8ea5cb73..3dc88d9db 100644 --- a/minuitwrp/graphics.cpp +++ b/minuitwrp/graphics.cpp @@ -296,6 +296,7 @@ int gr_init(void) { gr_draw = NULL; +#ifdef MSM_BSP gr_backend = open_overlay(); if (gr_backend) { gr_draw = gr_backend->init(gr_backend); @@ -304,9 +305,10 @@ int gr_init(void) } else printf("Using overlay graphics.\n"); } +#endif #ifdef HAS_ADF - if (!gr_draw) { + if (!gr_backend || !gr_draw) { gr_backend = open_adf(); if (gr_backend) { gr_draw = gr_backend->init(gr_backend); @@ -325,7 +327,7 @@ int gr_init(void) #endif #ifdef HAS_DRM - if (!gr_draw) { + if (!gr_backend || !gr_draw) { gr_backend = open_drm(); gr_draw = gr_backend->init(gr_backend); if (gr_draw) @@ -335,7 +337,7 @@ int gr_init(void) printf("Skipping drm graphics -- not present in build tree\n"); #endif - if (!gr_draw) { + if (!gr_backend || !gr_draw) { gr_backend = open_fbdev(); gr_draw = gr_backend->init(gr_backend); if (gr_draw == NULL) { |