Commit 41f96fc2fe67ec6fd0c138608780cc7c3dc29e86

Authored by Adeel Kazmi
Committed by Gerrit Code Review
2 parents 9d3af0c7 13dabf5e

Merge "(AnimatedImages) Changed the fitting mode as the default has changed" into devel/master

examples/animated-images/animated-images-example.cpp
1 /* 1 /*
2 - * Copyright (c) 2020 Samsung Electronics Co., Ltd. 2 + * Copyright (c) 2022 Samsung Electronics Co., Ltd.
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
19 #include <dali-toolkit/devel-api/controls/control-devel.h> 19 #include <dali-toolkit/devel-api/controls/control-devel.h>
20 #include <dali-toolkit/devel-api/controls/table-view/table-view.h> 20 #include <dali-toolkit/devel-api/controls/table-view/table-view.h>
21 #include <dali-toolkit/devel-api/visuals/animated-image-visual-actions-devel.h> 21 #include <dali-toolkit/devel-api/visuals/animated-image-visual-actions-devel.h>
  22 +#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
22 23
23 using namespace Dali; 24 using namespace Dali;
24 using namespace Dali::Toolkit; 25 using namespace Dali::Toolkit;
@@ -338,6 +339,7 @@ private: @@ -338,6 +339,7 @@ private:
338 } 339 }
339 map.Add(Toolkit::ImageVisual::Property::URL, Property::Value(frameUrls)); 340 map.Add(Toolkit::ImageVisual::Property::URL, Property::Value(frameUrls));
340 } 341 }
  342 + map.Add(DevelVisual::Property::VISUAL_FITTING_MODE, DevelVisual::FIT_KEEP_ASPECT_RATIO);
341 } 343 }
342 344
343 /** 345 /**