static inline device_type_e get_device_type()
{
int width, height;
+ bool is_circle = false;
device_type_e device_type = DEVICE_NONE;
if(device_width<0 && device_height<0)
system_info_get_platform_int("tizen.org/feature/screen.width", &device_width);
system_info_get_platform_int("tizen.org/feature/screen.height", &device_height);
}
+ system_info_get_platform_bool("tizen.org/feature/screen.shape.circle", &is_circle);
width = device_width;
height = device_height;
- if(width == 360 && height == 360)
+ if((width == 360 && height == 360) || is_circle)
{
//circle
device_type = DEVICE_WEARABLE_360_360;
{
device_type = DEVICE_WEARABLE_320_320;
}
-return device_type;
+
+ return device_type;
}