From 8cdd3f3790dbb78ebbbc42ff0b85711693fb5fb2 Mon Sep 17 00:00:00 2001 From: Charlenni Date: Wed, 26 Dec 2018 15:47:19 +0100 Subject: [PATCH] Changed API for sk_drawable.draw(): Made matrix not constant --- include/c/sk_drawable.h | 2 +- src/c/sk_drawable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c/sk_drawable.h b/include/c/sk_drawable.h index 8c3f0bf250..dc838a6eb3 100644 --- a/include/c/sk_drawable.h +++ b/include/c/sk_drawable.h @@ -18,7 +18,7 @@ typedef struct sk_drawable_t sk_drawable_t; SK_C_API void sk_drawable_unref (sk_drawable_t*); SK_C_API uint32_t sk_drawable_get_generation_id (sk_drawable_t*); SK_C_API void sk_drawable_get_bounds (sk_drawable_t*, sk_rect_t*); -SK_C_API void sk_drawable_draw (sk_drawable_t*, sk_canvas_t*, const sk_matrix_t*); +SK_C_API void sk_drawable_draw (sk_drawable_t*, sk_canvas_t*, sk_matrix_t*); SK_C_API sk_picture_t* sk_drawable_new_picture_snapshot(sk_drawable_t*); SK_C_API void sk_drawable_notify_drawing_changed (sk_drawable_t*); diff --git a/src/c/sk_drawable.cpp b/src/c/sk_drawable.cpp index fa2adb073d..1ed50fdfd4 100644 --- a/src/c/sk_drawable.cpp +++ b/src/c/sk_drawable.cpp @@ -28,7 +28,7 @@ void sk_drawable_get_bounds(sk_drawable_t* d, sk_rect_t* rect) *rect = ToRect(AsDrawable(d)->getBounds()); } -void sk_drawable_draw(sk_drawable_t* d, sk_canvas_t* c, const sk_matrix_t* matrix) +void sk_drawable_draw(sk_drawable_t* d, sk_canvas_t* c, sk_matrix_t* matrix) { AsDrawable(d)->draw(AsCanvas(c), &AsMatrix(matrix)); } -- 2.34.1