Commit 343f5cdf515615dc88e1697e7b96a792162bea57

Authored by Xiangyin Ma
1 parent 36ad39ad

DemoHelper: correct the ScalePointSize function

Change-Id: Ib4ececd7cbff7f27524bd9e1fce605a6c83fda42
Showing 1 changed file with 1 additions and 1 deletions
examples/shared/view.h
@@ -59,7 +59,7 @@ float ScalePointSize(int pointSize) @@ -59,7 +59,7 @@ float ScalePointSize(int pointSize)
59 { 59 {
60 Dali::Vector2 dpi = Dali::Stage::GetCurrent().GetDpi(); 60 Dali::Vector2 dpi = Dali::Stage::GetCurrent().GetDpi();
61 float meanDpi = (dpi.height + dpi.width) * 0.5f; 61 float meanDpi = (dpi.height + dpi.width) * 0.5f;
62 - return pointSize * meanDpi / 220.0f; // 220 is the default horizontal DPI defined in adaptor Application 62 + return pointSize * 220.0f / meanDpi; // 220 is the default horizontal DPI defined in adaptor Application
63 } 63 }
64 64
65 Dali::TextStyle& GetDefaultTextStyle() 65 Dali::TextStyle& GetDefaultTextStyle()