From 13dabf5e92f785a63af7d9a640c3cb9ce3133f23 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Fri, 24 Jun 2022 12:11:11 +0100 Subject: [PATCH] (AnimatedImages) Changed the fitting mode as the default has changed Change-Id: Ifc672440be5f44a055e0ec8fddd4a9005bc8e5d4 --- examples/animated-images/animated-images-example.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/animated-images/animated-images-example.cpp b/examples/animated-images/animated-images-example.cpp index 9db95e4..14b4500 100644 --- a/examples/animated-images/animated-images-example.cpp +++ b/examples/animated-images/animated-images-example.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ #include #include #include +#include using namespace Dali; using namespace Dali::Toolkit; @@ -338,6 +339,7 @@ private: } map.Add(Toolkit::ImageVisual::Property::URL, Property::Value(frameUrls)); } + map.Add(DevelVisual::Property::VISUAL_FITTING_MODE, DevelVisual::FIT_KEEP_ASPECT_RATIO); } /** -- 2.7.4