[deploy] fix: text actor cache offset
This commit is contained in:
parent
946bada0ec
commit
3596e355cf
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue