From f79abc4c93b8959ffa0e5844c88991fc8fb249c3 Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Wed, 22 May 2024 16:06:29 +0900 Subject: Add new fittingMode for visualFitting Change-Id: I8e05a44b430b63056b2f3957156268ae6e00e05b --- .../image-scaling-and-filtering-example.cpp | 3 +++ .../image-scaling-irregular-grid-example.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'examples') 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; } -- cgit v1.2.3