From d44a702972e7254734e50eeaeb4ae425399457b9 Mon Sep 17 00:00:00 2001 From: shaozhimin Date: Wed, 5 Jun 2024 11:34:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#229044=20=E3=80=90=E9=9C=80=E6=B1=822816?= =?UTF-8?q?1=E3=80=91=E7=B3=BB=E7=BB=9F=E6=98=BE=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=8E=B7=E5=8F=96=E6=A8=A1=E5=9D=97-=E7=89=A9?= =?UTF-8?q?=E7=90=86=E6=B0=B4=E5=B9=B3=E5=92=8C=E5=9E=82=E7=9B=B4DPI?= =?UTF-8?q?=E4=B8=8E=E5=AE=9E=E9=99=85DPI=E5=80=BC=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hardware/libkyedid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/libkyedid.c b/src/hardware/libkyedid.c index a445afb..0316bc4 100644 --- a/src/hardware/libkyedid.c +++ b/src/hardware/libkyedid.c @@ -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; }