fix #229044 【需求28161】系统显示信息获取模块-物理水平和垂直DPI与实际DPI值不一致

This commit is contained in:
shaozhimin 2024-06-05 11:34:07 +08:00
parent 011d4300d9
commit d44a702972
1 changed files with 2 additions and 2 deletions

View File

@ -2717,7 +2717,7 @@ float kdk_edid_get_rawDpiX(char *name)
free(area);
float inch = 0.0;
inch = atoi(horization) / 25.4;
inch = atof(horization) / 25.4;
char *max = kdk_edid_get_max_resolution(name);
if(!max)
@ -2735,7 +2735,7 @@ float kdk_edid_get_rawDpiX(char *name)
p = strtok(NULL,"");
}
int reslou = atoi(buff[0]);
float reslou = atof(buff[0]);
float rawDpiX = reslou / inch;
return rawDpiX;
}