From b8fece6e0a275e2da11dbb7dcb17bf8500e19f80 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Wed, 27 Mar 2019 15:52:13 -0400 Subject: [PATCH] Add back prototype for lv_canvas_mult_buf It appears to have been accidentally removed in aaad794085eec36edaf8152645c604f61f8a324d. --- src/lv_objx/lv_canvas.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lv_objx/lv_canvas.h b/src/lv_objx/lv_canvas.h index 4864b1150..fd37c22d9 100644 --- a/src/lv_objx/lv_canvas.h +++ b/src/lv_objx/lv_canvas.h @@ -137,6 +137,17 @@ lv_style_t * lv_canvas_get_style(const lv_obj_t * canvas, lv_canvas_style_t type */ void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t w, lv_coord_t h, lv_coord_t x, lv_coord_t y); +/** + * Multiply a buffer with the canvas + * @param canvas pointer to a canvas object + * @param to_copy buffer to copy (multiply). LV_IMG_CF_TRUE_COLOR_ALPHA is not supported + * @param w width of the buffer to copy + * @param h height of the buffer to copy + * @param x left side of the destination position + * @param y top side of the destination position + */ +void lv_canvas_mult_buf(lv_obj_t * canvas, void * to_copy, lv_coord_t w, lv_coord_t h, lv_coord_t x, lv_coord_t y); + /** * Rotate and image and store the result on a canvas. * @param canvas pointer to a canvas object