Skip to content

Commit

Permalink
fix: 🐛 missing binding for tvg_canvas_set_viewport c api
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf authored and mgrudzinska committed May 24, 2024
1 parent 5c8b68c commit 178cf29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bindings/capi/tvgCapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/************************************************************************/
Expand Down

0 comments on commit 178cf29

Please sign in to comment.