gl_engine renderer: fix build break.

just found a missing change for the fillColor api.
This commit is contained in:
Hermet Park 2020-11-06 15:25:11 +09:00
parent 5751fd13cc
commit 9718c6aa5b

View file

@ -116,7 +116,7 @@ bool GlRenderer::render(const Shape& shape, void* data)
} }
else if (flags & RenderUpdateFlag::Color) else if (flags & RenderUpdateFlag::Color)
{ {
shape.fill(&r, &g, &b, &a); shape.fillColor(&r, &g, &b, &a);
drawPrimitive(*sdata, r, g, b, a, i, RenderUpdateFlag::Color); drawPrimitive(*sdata, r, g, b, a, i, RenderUpdateFlag::Color);
} }
if (flags & RenderUpdateFlag::Stroke) if (flags & RenderUpdateFlag::Stroke)
@ -159,7 +159,7 @@ void* GlRenderer::prepare(const Shape& shape, void* data, TVG_UNUSED const Rende
//invisible? //invisible?
uint8_t alphaF, alphaS; uint8_t alphaF, alphaS;
shape.fill(nullptr, nullptr, nullptr, &alphaF); shape.fillColor(nullptr, nullptr, nullptr, &alphaF);
shape.strokeColor(nullptr, nullptr, nullptr, &alphaS); shape.strokeColor(nullptr, nullptr, nullptr, &alphaS);
auto strokeWd = shape.strokeWidth(); auto strokeWd = shape.strokeWidth();