From 4ac58de1bf87c2e8dc6a32eb4d79a8eadd4f76b5 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 19 Nov 2021 20:16:06 +0900 Subject: [PATCH] common paint: fix a typo. --- src/lib/tvgPaint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tvgPaint.cpp b/src/lib/tvgPaint.cpp index e3d2342e..609bfdb4 100644 --- a/src/lib/tvgPaint.cpp +++ b/src/lib/tvgPaint.cpp @@ -78,7 +78,7 @@ static bool _compFastTrack(Paint* cmpTarget, const RenderTransform* pTransform, viewport.x = static_cast(x1); viewport.y = static_cast(y1); viewport.w = static_cast(x2 - x1 < 0 ? 0 : roundf(x2 - x1 + 0.5f)); - viewport.h = static_cast(x2 - x1 < 0 ? 0 : roundf(y2 - y1 + 0.5f)); + viewport.h = static_cast(y2 - y1 < 0 ? 0 : roundf(y2 - y1 + 0.5f)); return true; }