summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2025-06-05 15:53:34 +0200
committertv <tv@krebsco.de>2025-06-05 15:54:16 +0200
commit6705bf2b8b8bbfaeaf91ad3cd98693b756fd401a (patch)
tree0165f7cb63f6e18f52d294d5a45a644959b8e043
parent78f2c9ac607f8597565936aea4c859dca3d696b9 (diff)
use mor fromIntegral when computing dpis
-rw-r--r--app/xoutinfo.hs4
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