Merge remote-tracking branch 'RebornedBrain/reborned/some_api_adjustments' into dev

This commit is contained in:
MX
2024-10-12 03:20:32 +03:00
3 changed files with 9 additions and 5 deletions

View File

@@ -525,17 +525,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

@@ -296,21 +296,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