From baff36cb93de1a37ff403b405f5cccb190407927 Mon Sep 17 00:00:00 2001 From: Ferran Sole Date: Mon, 13 Jul 2015 15:35:14 +0100 Subject: [PATCH] Modified control depth index ranges so they have less impact on sorting algorithm Change-Id: I8be297d9496b48357dcdcdf2dc2a7ccd77357dc2 --- dali-toolkit/public-api/controls/control-depth-index-ranges.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dali-toolkit/public-api/controls/control-depth-index-ranges.h b/dali-toolkit/public-api/controls/control-depth-index-ranges.h index e9fc76a..1a55cf2 100644 --- a/dali-toolkit/public-api/controls/control-depth-index-ranges.h +++ b/dali-toolkit/public-api/controls/control-depth-index-ranges.h @@ -18,15 +18,16 @@ * */ +#include namespace Dali { namespace Toolkit { enum ControlDepthIndexRanges { - BACKGROUND_DEPTH_INDEX = -10000000, - CONTENT_DEPTH_INDEX = 0, - DECORATION_DEPTH_INDEX = 10000000 + BACKGROUND_DEPTH_INDEX = static_cast( -Dali::Layer::TREE_DEPTH_MULTIPLIER * 0.1f ), + CONTENT_DEPTH_INDEX = 0, + DECORATION_DEPTH_INDEX = static_cast( Dali::Layer::TREE_DEPTH_MULTIPLIER * 0.1f ) }; } -- 2.7.4