From 6705bf2b8b8bbfaeaf91ad3cd98693b756fd401a Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Jun 2025 15:53:34 +0200 Subject: use mor fromIntegral when computing dpis --- app/xoutinfo.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xoutinfo.hs b/app/xoutinfo.hs index 3ced671..e2fa1e3 100644 --- a/app/xoutinfo.hs +++ b/app/xoutinfo.hs @@ -68,8 +68,8 @@ main = do height = fromIntegral xrr_moninf_height width_mm = fromIntegral xrr_moninf_mwidth height_mm = fromIntegral xrr_moninf_mheight - dpi_x = width / width_mm * 25.4 - dpi_y = height / height_mm * 25.4 + dpi_x = fromIntegral width / fromIntegral width_mm * 25.4 + dpi_y = fromIntegral height / fromIntegral height_mm * 25.4 return Output { name = name , device_scale_factor = dpi_x / default_dpi -- cgit v1.2.3