From 4cfb00038eaf8fe9baecc03d3a92cd79df77b41f Mon Sep 17 00:00:00 2001 From: Tyler Hoeflicker Date: Tue, 15 Nov 2016 08:41:36 -0800 Subject: [PATCH] rename method --- src/c/sk_bitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c/sk_bitmap.cpp b/src/c/sk_bitmap.cpp index fcf36bc..4a75ed8 100644 --- a/src/c/sk_bitmap.cpp +++ b/src/c/sk_bitmap.cpp @@ -315,8 +315,8 @@ sk_colortable_t* sk_bitmap_get_colortable(sk_bitmap_t* cbitmap) return ToColorTable(AsBitmap(cbitmap)->getColorTable()); } -void sk_bitmap_set_colortable(sk_bitmap_t* cbitmap, sk_colortable_t* ctable) +void sk_bitmap_set_pixels(sk_bitmap_t* cbitmap, const void* pixels, sk_colortable_t* ctable) { SkBitmap* bmp AsBitmap(cbitmap); - bmp->setPixels(bmp->getPixels(), AsColorTable(ctable)); + bmp->setPixels(pixels, AsColorTable(ctable)); } \ No newline at end of file -- 2.7.4