From: cskim Date: Tue, 18 Apr 2017 10:02:31 +0000 (+0900) Subject: Modify sizeutil for Odroid. X-Git-Tag: submit/tizen/20170808.015446~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57cef20f065a0813c6d093dbf241adba7e1c0bf2;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Modify sizeutil for Odroid. Change-Id: If1831d32af89dfbca0ce8823a5b11bdca5a92a55 --- diff --git a/LibTVRefCommonPortable/Utils/SizeUtils.cs b/LibTVRefCommonPortable/Utils/SizeUtils.cs index baa3969..c4b6ef9 100644 --- a/LibTVRefCommonPortable/Utils/SizeUtils.cs +++ b/LibTVRefCommonPortable/Utils/SizeUtils.cs @@ -153,8 +153,8 @@ namespace LibTVRefCommonPortable.Utils case PlatformModel.Other: case PlatformModel.TV: // TODO : Remove this if the TV/Other device's dpi is correctly changed. - double tempAdjustmentRatio = 0.3D; - //DebuggingUtils.Dbg("TV/Other, Font size = " + fontBaseSize + " => " + ((double)((double)fontBaseSize / (double)BaseScreenHeight) * (double)ScreenHeight) * ScaleRatio * tempAdjustmentRatio); + //DebuggingUtils.Dbg(String.Format("TV/Other, fontBaseSize = {0}, BaseScreenHeight = {1}, ScreenHeight = {2}, ScaleRatio = {3}", fontBaseSize, BaseScreenHeight, ScreenHeight, ScaleRatio)); + double tempAdjustmentRatio = 0.22D; return Convert.ToInt32(((double)((double)fontBaseSize / (double)BaseScreenHeight) * (double)ScreenHeight) * ScaleRatio * tempAdjustmentRatio); } }