summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-15 19:58:56 +0200
committerElliott Hughes <enh@google.com>2015-04-15 19:58:56 +0200
commit0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9 (patch)
tree625c21a7688ed613dd22fc9fc9e6c68cec7c44bc /minui/graphics_fbdev.cpp
parentMerge "Move the menu header out of the menu." (diff)
downloadandroid_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar.gz
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar.bz2
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar.lz
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar.xz
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.tar.zst
android_bootable_recovery-0a5cb0c7cd995ae0330a7d54a8d0db5d892a48a9.zip
Diffstat (limited to 'minui/graphics_fbdev.cpp')
-rw-r--r--minui/graphics_fbdev.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/minui/graphics_fbdev.cpp b/minui/graphics_fbdev.cpp
index 9dbdde810..997e9cac2 100644
--- a/minui/graphics_fbdev.cpp
+++ b/minui/graphics_fbdev.cpp
@@ -33,8 +33,8 @@
#include "minui.h"
#include "graphics.h"
-static gr_surface fbdev_init(minui_backend*);
-static gr_surface fbdev_flip(minui_backend*);
+static GRSurface* fbdev_init(minui_backend*);
+static GRSurface* fbdev_flip(minui_backend*);
static void fbdev_blank(minui_backend*, bool);
static void fbdev_exit(minui_backend*);
@@ -79,7 +79,7 @@ static void set_displayed_framebuffer(unsigned n)
displayed_buffer = n;
}
-static gr_surface fbdev_init(minui_backend* backend) {
+static GRSurface* fbdev_init(minui_backend* backend) {
int fd = open("/dev/graphics/fb0", O_RDWR);
if (fd == -1) {
perror("cannot open fb0");
@@ -174,7 +174,7 @@ static gr_surface fbdev_init(minui_backend* backend) {
return gr_draw;
}
-static gr_surface fbdev_flip(minui_backend* backend __unused) {
+static GRSurface* fbdev_flip(minui_backend* backend __unused) {
if (double_buffered) {
#if defined(RECOVERY_BGRA)
// In case of BGRA, do some byte swapping