From 83fa857f5294681fa4615af46b1acf1ae535b6a1 Mon Sep 17 00:00:00 2001 From: Nomango Date: Sat, 12 Dec 2020 21:50:39 +0800 Subject: [PATCH] [deploy] bug fix --- src/kiwano/2d/Canvas.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kiwano/2d/Canvas.h b/src/kiwano/2d/Canvas.h index ac212681..382d79c4 100644 --- a/src/kiwano/2d/Canvas.h +++ b/src/kiwano/2d/Canvas.h @@ -411,7 +411,8 @@ inline void CanvasRenderContext::DrawTexture(TexturePtr texture, const Point& po if (texture) { - ctx_->DrawTexture(*texture, crop_rect, &Rect(pos, size)); + Rect dest_rect(pos, size); + ctx_->DrawTexture(*texture, crop_rect, &dest_rect); } }