projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ad39a
)
DemoHelper: correct the ScalePointSize function
84/30584/1
author
Xiangyin Ma
<x1.ma@samsung.com>
Thu, 20 Nov 2014 16:59:49 +0000
(16:59 +0000)
committer
Xiangyin Ma
<x1.ma@samsung.com>
Thu, 20 Nov 2014 16:59:49 +0000
(16:59 +0000)
Change-Id: Ib4ececd7cbff7f27524bd9e1fce605a6c83fda42
examples/shared/view.h
patch
|
blob
|
history
diff --git
a/examples/shared/view.h
b/examples/shared/view.h
index a5b03e77b052e39f1d47f8df2741110adf90a250..ab9f20c58f9464da03de2b2c66f5e3d5112ccaf3 100644
(file)
--- a/
examples/shared/view.h
+++ b/
examples/shared/view.h
@@
-59,7
+59,7
@@
float ScalePointSize(int pointSize)
{
Dali::Vector2 dpi = Dali::Stage::GetCurrent().GetDpi();
float meanDpi = (dpi.height + dpi.width) * 0.5f;
- return pointSize *
meanDpi / 220.0f
; // 220 is the default horizontal DPI defined in adaptor Application
+ return pointSize *
220.0f / meanDpi
; // 220 is the default horizontal DPI defined in adaptor Application
}
Dali::TextStyle& GetDefaultTextStyle()