Function renamed accroding to review suggestions

This commit is contained in:
RebornedBrain
2024-10-11 22:49:40 +03:00
parent 180d1f0471
commit 676eab29f2
3 changed files with 10 additions and 6 deletions

View File

@@ -517,17 +517,18 @@ void canvas_draw_xbm(
canvas_draw_u8g2_bitmap(&canvas->fb, x, y, width, height, bitmap, IconRotation0);
}
void canvas_draw_xbm_mirrored(
void canvas_draw_xbm_custom(
Canvas* canvas,
int32_t x,
int32_t y,
size_t width,
size_t height,
IconRotation rotation,
const uint8_t* bitmap_data) {
furi_check(canvas);
x += canvas->offset_x;
y += canvas->offset_y;
canvas_draw_u8g2_bitmap(&canvas->fb, x, y, width, height, bitmap_data, IconRotation180);
canvas_draw_u8g2_bitmap(&canvas->fb, x, y, width, height, bitmap_data, rotation);
}
void canvas_draw_glyph(Canvas* canvas, int32_t x, int32_t y, uint16_t ch) {

View File

@@ -287,21 +287,24 @@ void canvas_draw_xbm(
size_t height,
const uint8_t* bitmap);
/** Draw mirrored XBM bitmap
/** Draw rotated XBM bitmap
*
* @param canvas Canvas instance
* @param x x coordinate
* @param y y coordinate
* @param[in] width bitmap width
* @param[in] height bitmap height
* @param[in] rotation bitmap rotation
* @param bitmap pointer to XBM bitmap data
*/
void canvas_draw_xbm_mirrored(
void canvas_draw_xbm_custom(
Canvas* canvas,
int32_t x,
int32_t y,
size_t width,
size_t height,
IconRotation rotation,
const uint8_t* bitmap_data);
/** Draw dot at x,y