diff --git a/applications/services/gui/canvas.c b/applications/services/gui/canvas.c index 5c297b681..47e4c7d3d 100644 --- a/applications/services/gui/canvas.c +++ b/applications/services/gui/canvas.c @@ -512,12 +512,10 @@ void canvas_draw_xbm( size_t height, const uint8_t* bitmap) { furi_check(canvas); - x += canvas->offset_x; - y += canvas->offset_y; - canvas_draw_u8g2_bitmap(&canvas->fb, x, y, width, height, bitmap, IconRotation0); + canvas_draw_xbm_ex(canvas, x, y, width, height, IconRotation0, bitmap); } -void canvas_draw_xbm_custom( +void canvas_draw_xbm_ex( Canvas* canvas, int32_t x, int32_t y, diff --git a/applications/services/gui/canvas.h b/applications/services/gui/canvas.h index 1805312fa..308d17fc3 100644 --- a/applications/services/gui/canvas.h +++ b/applications/services/gui/canvas.h @@ -298,7 +298,7 @@ void canvas_draw_xbm( * @param bitmap pointer to XBM bitmap data */ -void canvas_draw_xbm_custom( +void canvas_draw_xbm_ex( Canvas* canvas, int32_t x, int32_t y,