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; }