summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Dodd <atd7@cornell.edu>2014-06-30 00:24:35 +0200
committerAndrew Dodd <atd7@cornell.edu>2014-06-30 03:14:06 +0200
commitbb687f4b13ef818d4eddf4a08662820e888576fd (patch)
tree6f4a109adb7267536d2b42e75379f3cf4935cf92
parentDo not restore file system on data/media devices (diff)
downloadandroid_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar.gz
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar.bz2
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar.lz
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar.xz
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.tar.zst
android_bootable_recovery-bb687f4b13ef818d4eddf4a08662820e888576fd.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics_overlay.c7
-rw-r--r--minuitwrp/graphics_overlay.c13
2 files changed, 13 insertions, 7 deletions
diff --git a/minui/graphics_overlay.c b/minui/graphics_overlay.c
index 02ef0b959..5677ad73d 100644
--- a/minui/graphics_overlay.c
+++ b/minui/graphics_overlay.c
@@ -77,7 +77,6 @@ static int map_mdp_pixel_format()
#endif
return format;
}
-#endif // #ifdef MSM_BSP
static bool overlay_supported = false;
@@ -103,8 +102,6 @@ bool target_has_overlay(char *version)
return overlay_supported;
}
-#ifdef MSM_BSP
-
int free_ion_mem(void) {
if (!overlay_supported)
return -EINVAL;
@@ -284,6 +281,10 @@ int overlay_display_frame(int fd, GGLubyte* data, size_t size)
#else
+bool target_has_overlay(char *version) {
+ return false;
+}
+
int free_ion_mem(void) {
return -EINVAL;
}
diff --git a/minuitwrp/graphics_overlay.c b/minuitwrp/graphics_overlay.c
index 961ae27c0..05c5472dc 100644
--- a/minuitwrp/graphics_overlay.c
+++ b/minuitwrp/graphics_overlay.c
@@ -80,7 +80,6 @@ static int map_mdp_pixel_format()
#endif
return format;
}
-#endif // #ifdef MSM_BSP
static bool overlay_supported = false;
static bool isMDP5 = false;
@@ -104,7 +103,7 @@ bool target_has_overlay(char *version)
isMDP5 = true;
}
}
-if (overlay_supported) printf("Using qcomm overlay\n");
+ if (overlay_supported) printf("Using qcomm overlay\n");
return overlay_supported;
}
@@ -116,8 +115,6 @@ bool isTargetMdp5()
return false;
}
-#ifdef MSM_BSP
-
int free_ion_mem(void) {
if (!overlay_supported)
return -EINVAL;
@@ -426,6 +423,14 @@ int overlay_display_frame(int fd, GGLubyte* data, size_t size)
#else
+bool target_has_overlay(char *version) {
+ return false;
+}
+
+bool isTargetMdp5() {
+ return false;
+}
+
int free_ion_mem(void) {
return -EINVAL;
}