summaryrefslogtreecommitdiffstats
path: root/minui/graphics_fbdev.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-15 20:36:32 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-15 20:36:32 +0200
commit0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce (patch)
tree625c21a7688ed613dd22fc9fc9e6c68cec7c44bc /minui/graphics_fbdev.cpp
parentam 6e435abf: Merge "Move the menu header out of the menu." (diff)
parentMerge "Don't use typedefs that hide *s." (diff)
downloadandroid_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar.gz
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar.bz2
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar.lz
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar.xz
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.tar.zst
android_bootable_recovery-0a557b6bc2a26afd3cb3a2e3dd2fdaf175b09cce.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