[PATCH 02/12] gui: Fix typo in function name
Sascha Hauer
s.hauer at pengutronix.de
Thu Jul 16 00:31:42 PDT 2015
It's a render buffer, not a redering buffer.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
include/gui/gui.h | 2 +-
lib/gui/bmp.c | 2 +-
lib/gui/png.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/gui/gui.h b/include/gui/gui.h
index 829d156..59ff590 100644
--- a/include/gui/gui.h
+++ b/include/gui/gui.h
@@ -27,7 +27,7 @@ struct screen {
int fbsize;
};
-static inline void* gui_screen_redering_buffer(struct screen *sc)
+static inline void *gui_screen_render_buffer(struct screen *sc)
{
if (sc->offscreenbuf)
return sc->offscreenbuf;
diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c
index 2a0509d..892b759 100644
--- a/lib/gui/bmp.c
+++ b/lib/gui/bmp.c
@@ -67,7 +67,7 @@ static int bmp_renderer(struct screen *sc, struct surface *s, struct image *img)
width = min(width, sc->s.width - startx);
height = min(height, sc->s.height - starty);
- buf = gui_screen_redering_buffer(sc);
+ buf = gui_screen_render_buffer(sc);
bits_per_pixel = img->bits_per_pixel;
diff --git a/lib/gui/png.c b/lib/gui/png.c
index 10faf5c..e72786e 100644
--- a/lib/gui/png.c
+++ b/lib/gui/png.c
@@ -65,7 +65,7 @@ static int png_renderer(struct screen *sc, struct surface *s, struct image *img)
width = min(width, sc->s.width - startx);
height = min(height, sc->s.height - starty);
- buf = gui_screen_redering_buffer(sc);
+ buf = gui_screen_render_buffer(sc);
gu_rgba_blend(&sc->info, img, buf, height, width, startx, starty, true);
--
2.1.4
More information about the barebox
mailing list