common paint: fix a typo.
authorHermet Park <chuneon.park@samsung.com>
Fri, 19 Nov 2021 11:16:06 +0000 (20:16 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 22 Nov 2021 03:54:58 +0000 (12:54 +0900)
src/lib/tvgPaint.cpp

index e3d2342..609bfdb 100644 (file)
@@ -78,7 +78,7 @@ static bool _compFastTrack(Paint* cmpTarget, const RenderTransform* pTransform,
         viewport.x = static_cast<uint32_t>(x1);
         viewport.y = static_cast<uint32_t>(y1);
         viewport.w = static_cast<uint32_t>(x2 - x1 < 0 ? 0 : roundf(x2 - x1 + 0.5f));
-        viewport.h = static_cast<uint32_t>(x2 - x1 < 0 ? 0 : roundf(y2 - y1 + 0.5f));
+        viewport.h = static_cast<uint32_t>(y2 - y1 < 0 ? 0 : roundf(y2 - y1 + 0.5f));
 
         return true;
     }