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:55:47 +0000 (12:55 +0900)
src/lib/tvgPaint.cpp

index e3d2342ecb5260368fdec215069e1b78034671fa..609bfdb43e4cd818ff996eac2ae80b2bc9d849d9 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;
     }