summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-11-02 17:57:37 +0100
committerDees Troy <dees_troy@teamw.in>2017-11-29 20:01:26 +0100
commit06c621908a14253d7c6a6d0dde3a1dec1a148109 (patch)
tree2f1b11703e058f000895e19f8832412ae24ce2d7
parentminui: Move graphics_overlay.h down that we have all structs defined (diff)
downloadandroid_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar.gz
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar.bz2
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar.lz
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar.xz
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.tar.zst
android_bootable_recovery-06c621908a14253d7c6a6d0dde3a1dec1a148109.zip
-rw-r--r--minui/graphics_overlay.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/minui/graphics_overlay.cpp b/minui/graphics_overlay.cpp
index 0e3e2559b..082d385d9 100644
--- a/minui/graphics_overlay.cpp
+++ b/minui/graphics_overlay.cpp
@@ -69,6 +69,9 @@ int MinuiBackendOverlay::map_mdp_pixel_format()
#endif
return format;
}
+
+static memInfo mem_info;
+
#endif // MSM_BSP
bool MinuiBackendOverlay::target_has_overlay()
@@ -461,7 +464,7 @@ GRSurface* MinuiBackendOverlay::Flip() {
// then flip the driver so we're displaying the other buffer
// instead.
gr_draw = gr_framebuffer + displayed_buffer;
- set_displayed_framebuffer(1-displayed_buffer);
+ SetDisplayedFramebuffer(1-displayed_buffer);
overlay_display_frame(fb_fd, gr_draw->data, frame_size);
} else {
// Copy from the in-memory surface to the framebuffer.
@@ -613,14 +616,14 @@ GRSurface* MinuiBackendOverlay::Init() {
memset(gr_draw->data, 0, gr_draw->height * gr_draw->row_bytes);
fb_fd = fd;
- set_displayed_framebuffer(0);
+ SetDisplayedFramebuffer(0);
frame_size = fi.line_length * vi.yres;
printf("framebuffer: %d (%d x %d)\n", fb_fd, gr_draw->width, gr_draw->height);
- overlay_blank(backend, true);
- overlay_blank(backend, false);
+ Blank(true);
+ Blank(false);
if (!alloc_ion_mem(fi.line_length * vi.yres))
allocate_overlay(fb_fd, gr_framebuffer);