[deploy] fix: text actor cache offset

This commit is contained in:
Nomango 2023-09-14 22:41:21 +08:00
parent 946bada0ec
commit 3596e355cf
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void TextActor::OnRender(RenderContext& ctx)
{
Rect dest_rect = GetBounds();
dest_rect.left_top -= cached_texture_offset;
dest_rect.right_bottom -= cached_texture_offset;
dest_rect.right_bottom += cached_texture_offset;
ctx.DrawTexture(*texture_cached_, nullptr, &dest_rect);
}
else