summaryrefslogtreecommitdiffstats
path: root/include/gui/image_renderer.h
Commit message (Collapse)AuthorAgeFilesLines
* gui: image_renderer: Fix empty prototype for image_renderer_image()Alexander Shiyan2022-06-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | In file included from lib/gui/png.c:9: include/gui/image_renderer.h: In function 'image_renderer_file': include/gui/image_renderer.h:67:29: warning: passing argument 1 of 'image_renderer_image' from incompatible pointer type [-Wincompatible-pointer-types] ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:42: note: expected 'struct surface *' but argument is of type 'struct screen *' int image_renderer_image(struct surface *s, struct image *img); include/gui/image_renderer.h:67:33: warning: passing argument 2 of 'image_renderer_image' from incompatible pointer type [-Wincompatible-pointer-types] ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:59: note: expected 'struct image *' but argumentis of type 'struct surface *' int image_renderer_image(struct surface *s, struct image *img); include/gui/image_renderer.h:67:8: error: too many arguments to function 'image_renderer_image' ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:5: note: declared here int image_renderer_image(struct surface *s, struct image *img); Fixes: 3fa8d74abea3 ("gui: introduce screen and surface to factorize and simplify code") Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.barebox.org/20220610054051.4911-4-eagle.alexander923@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: image_renderer: fix "no previous prototype for ↵Antony Pavlov2017-03-301-1/+1
| | | | | | | | | | | | | 'image_renderer_unregister'" warning The patch fixes this compiler's warning: lib/gui/image_renderer.c:92:6: warning: no previous prototype for 'image_renderer_unregister' [-Wmissing-prototypes] void image_renderer_unregister(struct image_renderer *ir) ^ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: introduce screen and surface to factorize and simplify codeJean-Christophe PLAGNIOL-VILLARD2012-10-041-10/+6
| | | | | | | | | | Instead of passing hundreds of parameter, just pass the right structure. struct screen represent the screen with a without double buffering. struct surface represent the part of the screen we want to render. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: move gui file to include/gui and lib/guiJean-Christophe PLAGNIOL-VILLARD2012-10-041-0/+78
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>