diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-07 14:41:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-20 12:57:08 +0200 |
commit | 7c5937d245b4ecf3c1c33eecfda0851aa277dbc6 (patch) | |
tree | 158710e0e3a13fe41311deddadf22fd663aadcfb /include/gui | |
parent | 38a71cde8f6e8ce175428dff16b1a89b4b7a7843 (diff) | |
download | barebox-7c5937d245b4ecf3c1c33eecfda0851aa277dbc6.tar.gz barebox-7c5937d245b4ecf3c1c33eecfda0851aa277dbc6.tar.xz |
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>
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/graphic_utils.h | 4 | ||||
-rw-r--r-- | include/gui/gui.h | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/include/gui/graphic_utils.h b/include/gui/graphic_utils.h index ab8c3fcff3..ff4d9a07b0 100644 --- a/include/gui/graphic_utils.h +++ b/include/gui/graphic_utils.h @@ -19,8 +19,8 @@ void gu_set_pixel(struct fb_info *info, void *adr, u32 px); void gu_set_rgb_pixel(struct fb_info *info, void *adr, u8 r, u8 g, u8 b); void gu_set_rgba_pixel(struct fb_info *info, void *adr, u8 r, u8 g, u8 b, u8 a); void gu_memset_pixel(struct fb_info *info, void* buf, u32 color, size_t size); -struct screen *fb_create_screen(struct fb_info *info, bool offscreen); -struct screen *fb_open(const char *fbdev, bool offscreen); +struct screen *fb_create_screen(struct fb_info *info); +struct screen *fb_open(const char *fbdev); void fb_close(struct screen *sc); void gu_screen_blit(struct screen *sc); void gu_invert_area(struct fb_info *info, void *buf, int startx, int starty, int width, diff --git a/include/gui/gui.h b/include/gui/gui.h index 03e60aa0de..133149beef 100644 --- a/include/gui/gui.h +++ b/include/gui/gui.h @@ -23,16 +23,12 @@ struct screen { struct surface s; void *fb; - void *offscreenbuf; int fbsize; }; static inline void *gui_screen_render_buffer(struct screen *sc) { - if (sc->offscreenbuf) - return sc->offscreenbuf; - return sc->fb; + return fb_get_screen_base(sc->info); } - #endif /* __GUI_H__ */ |