projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda66c7
)
common paint: changed result in composite API
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Sun, 25 Apr 2021 21:40:03 +0000
(23:40 +0200)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Thu, 29 Apr 2021 03:01:08 +0000
(12:01 +0900)
A possible error is due to erroneous arguments, so
InvalidArgument is return instead of InsufficientCondition
src/lib/tvgPaint.cpp
patch
|
blob
|
history
diff --git
a/src/lib/tvgPaint.cpp
b/src/lib/tvgPaint.cpp
index 9b0aba770d3327a13b379a4f69c044218eafc443..b40b5290fa562a0440a296d182fc807f3d40dea3 100644
(file)
--- a/
src/lib/tvgPaint.cpp
+++ b/
src/lib/tvgPaint.cpp
@@
-298,7
+298,7
@@
Paint* Paint::duplicate() const noexcept
Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) const noexcept
{
if (pImpl->composite(target.release(), method)) return Result::Success;
- return Result::In
sufficientCondition
;
+ return Result::In
validArguments
;
}
@@
-316,4
+316,4
@@
Result Paint::opacity(uint8_t o) noexcept
uint8_t Paint::opacity() const noexcept
{
return pImpl->opacity;
-}
\ No newline at end of file
+}