diff options
Diffstat (limited to 'thirdparty/thorvg/src/lib/tvgPaint.cpp')
-rw-r--r-- | thirdparty/thorvg/src/lib/tvgPaint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/thorvg/src/lib/tvgPaint.cpp b/thirdparty/thorvg/src/lib/tvgPaint.cpp index 30e82fbc60..d0e908ddf2 100644 --- a/thirdparty/thorvg/src/lib/tvgPaint.cpp +++ b/thirdparty/thorvg/src/lib/tvgPaint.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2020 - 2022 Samsung Electronics Co., Ltd. All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -79,8 +79,8 @@ static bool _compFastTrack(Paint* cmpTarget, const RenderTransform* pTransform, viewport.x = static_cast<int32_t>(v1.x); viewport.y = static_cast<int32_t>(v1.y); - viewport.w = static_cast<int32_t>(v2.x - v1.x + 0.5f); - viewport.h = static_cast<int32_t>(v2.y - v1.y + 0.5f); + viewport.w = static_cast<int32_t>(ceil(v2.x - viewport.x)); + viewport.h = static_cast<int32_t>(ceil(v2.y - viewport.y)); if (viewport.w < 0) viewport.w = 0; if (viewport.h < 0) viewport.h = 0; @@ -404,4 +404,4 @@ uint8_t Paint::opacity() const noexcept uint32_t Paint::identifier() const noexcept { return pImpl->id; -}
\ No newline at end of file +} |