Skip to content

Commit

Permalink
[deploy] fix: text actor cache offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomango committed Sep 14, 2023
1 parent 946bada commit 3596e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kiwano/2d/TextActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3596e35

Please sign in to comment.