DemoHelper: correct the ScalePointSize function 84/30584/1
authorXiangyin Ma <x1.ma@samsung.com>
Thu, 20 Nov 2014 16:59:49 +0000 (16:59 +0000)
committerXiangyin Ma <x1.ma@samsung.com>
Thu, 20 Nov 2014 16:59:49 +0000 (16:59 +0000)
Change-Id: Ib4ececd7cbff7f27524bd9e1fce605a6c83fda42

examples/shared/view.h

index a5b03e7..ab9f20c 100644 (file)
@@ -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()