Changed API for sk_drawable.draw(): Made matrix not constant
authorCharlenni <geocaching@weltz-online.de>
Wed, 26 Dec 2018 14:47:19 +0000 (15:47 +0100)
committerCharlenni <geocaching@weltz-online.de>
Wed, 26 Dec 2018 14:47:19 +0000 (15:47 +0100)
include/c/sk_drawable.h
src/c/sk_drawable.cpp

index 8c3f0bf2507dea5ae87b40ec874bf199e08020f7..dc838a6eb3aab04e889dd8d195b26743be87bf18 100644 (file)
@@ -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*);
 
index fa2adb073d407d8a8f21fbbd19e88cf7e348d8ec..1ed50fdfd4726da5a6a1af489b29363fff4fc207 100644 (file)
@@ -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));
 }