Don't use typedefs that hide *s.
gr_surface was causing confusion for no good reason. Change-Id: If7120187f9a00dd16297877fc49352185a4d4ea6
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user