This commit is contained in:
2022-12-27 14:14:03 +00:00
parent 2def9800fa
commit 85738adff1
6 changed files with 169 additions and 160 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
module Dodge.Render.List where
import Data.Foldable
--import Data.Foldable
import Data.Maybe
import Dodge.Base.WinScale
import Dodge.Base.Window
@@ -102,7 +102,7 @@ listCursorChooseBorder = listCursorChooseBorderScale 10 1
-- note we cannot simply scale lines because they are drawn as solid rectangles
chooseCursorBorders :: Float -> Float -> [CardinalPoint] -> Picture
chooseCursorBorders wth hgt = fold . map (line . toLine)
chooseCursorBorders wth hgt = foldMap (line . toLine)
where
top = 0
bot = - hgt