X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fprojection.cpp;h=ffdd632b82306a7139e301b7c76609a6727d4510;hb=d353bae63798f48237dc24c078c2e8cb2aa0bc62;hp=b7b3d2335437b97c6589a6c9dc8545520c15cec9;hpb=926d6ac76f0f1a7858e19e330e71431e4741e1ce;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/projection.cpp b/dali/internal/event/common/projection.cpp index b7b3d23..ffdd632 100644 --- a/dali/internal/event/common/projection.cpp +++ b/dali/internal/event/common/projection.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -133,7 +133,7 @@ bool ProjectFull( const Vector4& position, if( !EqualsZero( p.w ) ) { - float div = 1.0 / p.w; + float div = 1.0f / p.w; windowPos = Vector4( (1 + p.x * div) * viewportWidth / 2 + viewportX, (1 - p.y * div) * viewportHeight / 2 + viewportY,