diff options
author | sunghyun kim <scholb.kim@samsung.com> | 2024-05-22 16:06:29 +0900 |
---|---|---|
committer | sunghyun kim <scholb.kim@samsung.com> | 2024-05-22 16:11:10 +0900 |
commit | f79abc4c93b8959ffa0e5844c88991fc8fb249c3 (patch) | |
tree | 5c0b2ddbde4f53196a0f956816615cee5cf0cfda /examples | |
parent | b60166d9ec03f8991a6e391e4ebf1b73b4d02337 (diff) | |
download | dali-demo-f79abc4c93b8959ffa0e5844c88991fc8fb249c3.tar.gz dali-demo-f79abc4c93b8959ffa0e5844c88991fc8fb249c3.tar.bz2 dali-demo-f79abc4c93b8959ffa0e5844c88991fc8fb249c3.zip |
Add new fittingMode for visualFitting
Change-Id: I8e05a44b430b63056b2f3957156268ae6e00e05b
Diffstat (limited to 'examples')
-rw-r--r-- | examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp | 3 | ||||
-rw-r--r-- | examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp b/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp index 2ba4d3ad..1ef3f642 100644 --- a/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp +++ b/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp @@ -94,6 +94,9 @@ FittingMode::Type NextScalingMode(FittingMode::Type oldMode) newMode = FittingMode::FIT_HEIGHT; break; case FittingMode::FIT_HEIGHT: + newMode = FittingMode::VISUAL_FITTING; + break; + case FittingMode::VISUAL_FITTING: newMode = FittingMode::SHRINK_TO_FIT; break; } diff --git a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp index 137a02a5..dc866f86 100644 --- a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp +++ b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp @@ -211,6 +211,9 @@ Dali::FittingMode::Type NextMode(const Dali::FittingMode::Type oldMode) newMode = FittingMode::FIT_HEIGHT; break; case FittingMode::FIT_HEIGHT: + newMode = FittingMode::VISUAL_FITTING; + break; + case FittingMode::VISUAL_FITTING: newMode = FittingMode::SHRINK_TO_FIT; break; } |