barebox/include/gui/gui.h
Sascha Hauer 7c5937d245 gui: Use fb provided shadowfb for offscreen rendering
The fb core now has builtin support for offscreen rendering, use
this and drop offscreen handling in the gui code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-08-20 12:57:08 +02:00

35 lines
443 B
C

/*
* Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* GPL v2
*/
#ifndef __GUI_H__
#define __GUI_H__
#include <fb.h>
struct surface {
int x;
int y;
int width;
int height;
};
struct screen {
int fd;
struct fb_info *info;
struct surface s;
void *fb;
int fbsize;
};
static inline void *gui_screen_render_buffer(struct screen *sc)
{
return fb_get_screen_base(sc->info);
}
#endif /* __GUI_H__ */