diff options
author | jao <jao@gnu.org> | 2024-03-30 18:26:01 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2024-03-30 18:26:01 +0000 |
commit | 30d226ba5eca8847775d03403367dee1f1e3dcfc (patch) | |
tree | b62d0f7f176f9f2b58d66866c3c6afb581334bd6 /src/Xmobar/Draw/Boxes.hs | |
parent | 3f4ae1034fe7575df05c59dd0c357fd448198594 (diff) | |
download | xmobar-30d226ba5eca8847775d03403367dee1f1e3dcfc.tar.gz xmobar-30d226ba5eca8847775d03403367dee1f1e3dcfc.tar.bz2 |
fix for unmet pattern matches warnings (clean build)
Diffstat (limited to 'src/Xmobar/Draw/Boxes.hs')
-rw-r--r-- | src/Xmobar/Draw/Boxes.hs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Xmobar/Draw/Boxes.hs b/src/Xmobar/Draw/Boxes.hs index 692e232..ff55ab3 100644 --- a/src/Xmobar/Draw/Boxes.hs +++ b/src/Xmobar/Draw/Boxes.hs @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------ -- | -- Module: Xmobar.X11.Boxes --- Copyright: (c) 2022 Jose Antonio Ortega Ruiz +-- Copyright: (c) 2022, 2024 Jose Antonio Ortega Ruiz -- License: BSD3-style (see LICENSE) -- -- Maintainer: jao@gnu.org @@ -43,11 +43,10 @@ boxLines (T.Box bd offset lw _ margins) ht x0 x1 = T.C -> (ma, -ma) T.R -> (ma, 0) lc = fromIntegral lw / 2 - [mt, mr, mb, ml] = map fromIntegral [top, right, bot, left] - xmin = x0 - ml - lc - xmax = x1 + mr + lc - ymin = mt + lc - ymax = ht - mb - lc + xmin = x0 - fromIntegral left - lc + xmax = x1 + fromIntegral right + lc + ymin = fromIntegral top + lc + ymax = ht - fromIntegral bot - lc rtop = (xmin + p0, ymin, xmax + p1, ymin) rbot = (xmin + p0, ymax, xmax + p1, ymax) rleft = (xmin, ymin + p0, xmin, ymax + p1) |