projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-core.git]
/
dali
/
internal
/
event
/
common
/
projection.cpp
diff --git
a/dali/internal/event/common/projection.cpp
b/dali/internal/event/common/projection.cpp
index
b7b3d23
..
ffdd632
100644
(file)
--- a/
dali/internal/event/common/projection.cpp
+++ b/
dali/internal/event/common/projection.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
4
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
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.
*
* 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 ) )
{
if( !EqualsZero( p.w ) )
{
- float div = 1.0 / p.w;
+ float div = 1.0
f
/ p.w;
windowPos = Vector4( (1 + p.x * div) * viewportWidth / 2 + viewportX,
(1 - p.y * div) * viewportHeight / 2 + viewportY,
windowPos = Vector4( (1 + p.x * div) * viewportWidth / 2 + viewportX,
(1 - p.y * div) * viewportHeight / 2 + viewportY,