mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
rename obsolete SkColor.h macro (#5175)
change SkColorSetARGBInline to SkColorSetARGB. SkColorSetARGBInline is deprecated and will be deleted from Skia.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ void DrawCheckerboard(SkCanvas* canvas, const SkRect& rect) {
|
||||
canvas->clipRect(rect);
|
||||
|
||||
auto checkerboard_color =
|
||||
SkColorSetARGBInline(64, rand() % 256, rand() % 256, rand() % 256);
|
||||
SkColorSetARGB(64, rand() % 256, rand() % 256, rand() % 256);
|
||||
|
||||
DrawCheckerboard(canvas, checkerboard_color, 0x00000000, 12);
|
||||
canvas->restore();
|
||||
|
||||
Reference in New Issue
Block a user