[deploy] bug fix

This commit is contained in:
Nomango 2020-12-12 21:50:39 +08:00
parent 502f3b2f3b
commit 83fa857f52
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ inline void CanvasRenderContext::DrawTexture(TexturePtr texture, const Point& po
if (texture) if (texture)
{ {
ctx_->DrawTexture(*texture, crop_rect, &Rect(pos, size)); Rect dest_rect(pos, size);
ctx_->DrawTexture(*texture, crop_rect, &dest_rect);
} }
} }