From: Ferran Sole Date: Mon, 13 Jul 2015 14:35:14 +0000 (+0100) Subject: Modified control depth index ranges so they have less impact on sorting algorithm X-Git-Tag: dali_1.0.49~10^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=baff36cb93de1a37ff403b405f5cccb190407927 Modified control depth index ranges so they have less impact on sorting algorithm Change-Id: I8be297d9496b48357dcdcdf2dc2a7ccd77357dc2 --- 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 ) }; }