mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
wasm: fix ambigious symbols
This commit is contained in:
parent
049f19313d
commit
42457a25c9
1 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ struct TvgSwEngine : TvgEngineMethod
|
||||||
|
|
||||||
~TvgSwEngine()
|
~TvgSwEngine()
|
||||||
{
|
{
|
||||||
free(buffer);
|
std::free(buffer);
|
||||||
Initializer::term(tvg::CanvasEngine::Sw);
|
Initializer::term(tvg::CanvasEngine::Sw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,8 +135,8 @@ struct TvgSwEngine : TvgEngineMethod
|
||||||
|
|
||||||
void resize(Canvas* canvas, int w, int h) override
|
void resize(Canvas* canvas, int w, int h) override
|
||||||
{
|
{
|
||||||
free(buffer);
|
std::free(buffer);
|
||||||
buffer = (uint8_t*)malloc(w * h * sizeof(uint32_t));
|
buffer = (uint8_t*)std::malloc(w * h * sizeof(uint32_t));
|
||||||
static_cast<SwCanvas*>(canvas)->target((uint32_t *)buffer, w, w, h, ColorSpace::ABGR8888S);
|
static_cast<SwCanvas*>(canvas)->target((uint32_t *)buffer, w, w, h, ColorSpace::ABGR8888S);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue