Skip to content

Commit

Permalink
Update Canvas::drawImage
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Sep 22, 2024
1 parent 91f5454 commit 03e47cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,9 @@ void Canvas::drawImage(const Bitmap& image, const Rect& dstRect, const Rect& src
plutovg_canvas_transform(m_canvas, &transform.matrix());
plutovg_canvas_translate(m_canvas, dstRect.x, dstRect.y);
plutovg_canvas_set_fill_rule(m_canvas, PLUTOVG_FILL_RULE_NON_ZERO);
plutovg_canvas_clip_rect(m_canvas, 0, 0, dstRect.w, dstRect.h);
plutovg_canvas_set_operator(m_canvas, PLUTOVG_OPERATOR_SRC_OVER);
plutovg_canvas_set_paint(m_canvas, paint);
plutovg_canvas_paint(m_canvas);
plutovg_canvas_fill_rect(m_canvas, 0, 0, dstRect.w, dstRect.h);
plutovg_paint_destroy(paint);
}

Expand Down

0 comments on commit 03e47cc

Please sign in to comment.