From 3596e355cf09b53253d33b4de66dfee99a287398 Mon Sep 17 00:00:00 2001 From: Nomango Date: Thu, 14 Sep 2023 22:41:21 +0800 Subject: [PATCH] [deploy] fix: text actor cache offset --- src/kiwano/2d/TextActor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kiwano/2d/TextActor.cpp b/src/kiwano/2d/TextActor.cpp index 462920e5..25c732ed 100644 --- a/src/kiwano/2d/TextActor.cpp +++ b/src/kiwano/2d/TextActor.cpp @@ -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