diff options
-rw-r--r-- | app/xoutinfo.hs | 4 |
1 files 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 |