mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 09:05:52 +00:00
gl_engine renderer: fix build break.
just found a missing change for the fillColor api.
This commit is contained in:
parent
5751fd13cc
commit
9718c6aa5b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue