static Lazy<int> s_dpi = new Lazy<int>(() =>
{
int dpi = 0;
+ var info = Device.Info as TizenDeviceInfo;
+ if (info != null && info.Profile == "tv")
+ {
+ // Use fixed DPI value (72) if TV profile
+ return 72;
+ }
TSystemInfo.TryGetValue<int>("http://tizen.org/feature/screen.dpi", out dpi);
return dpi;
});
public TizenDeviceInfo(FormsApplication formsApplication)
{
+ //TODO : Fix me if elm_config_profile_get() unavailable
+ profile = Elementary.GetProfile();
+
int width = 0;
int height = 0;
pixelScreenSize = new Size(width, height);
scaledScreenSize = new Size(width / scalingFactor, height / scalingFactor);
-
- //TODO : Fix me if elm_config_profile_get() unavailable
- profile = Elementary.GetProfile();
}
}