mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
fix: 🐛 missing binding for tvg_canvas_set_viewport c api
This commit is contained in:
parent
5c8b68c220
commit
178cf2944d
1 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,13 @@ TVG_API Tvg_Result tvg_canvas_sync(Tvg_Canvas* canvas)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TVG_API Tvg_Result tvg_canvas_set_viewport(Tvg_Canvas* canvas, int32_t x, int32_t y, int32_t w, int32_t h)
|
||||||
|
{
|
||||||
|
if (!canvas) return TVG_RESULT_INVALID_ARGUMENT;
|
||||||
|
return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->viewport(x, y, w, h);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/* Paint API */
|
/* Paint API */
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
Loading…
Add table
Reference in a new issue