fix map for MindMap
This commit is contained in:
parent
b276219e07
commit
c0b3acd647
1 changed files with 4 additions and 4 deletions
|
@ -171,8 +171,8 @@ drawMind = do
|
||||||
x = realToFrac $ 640 + ((1 - pc) + (1 - pr)) * (tileWidth / 2)
|
x = realToFrac $ 640 + ((1 - pc) + (1 - pr)) * (tileWidth / 2)
|
||||||
y = realToFrac $ 360 + ((1 - pr) - (1 - pc)) * (tileHeight / 2)
|
y = realToFrac $ 360 + ((1 - pr) - (1 - pc)) * (tileHeight / 2)
|
||||||
partposanims = M.fromList
|
partposanims = M.fromList
|
||||||
(nrows $ mapMat $ stateData ud)
|
(nrows $ mmImgMat $ stateData ud)
|
||||||
(ncols $ mapMat $ stateData ud)
|
(ncols $ mmImgMat $ stateData ud)
|
||||||
((reverse . fst)
|
((reverse . fst)
|
||||||
(Prelude.foldl
|
(Prelude.foldl
|
||||||
(\(done, proc) coord ->
|
(\(done, proc) coord ->
|
||||||
|
@ -181,8 +181,8 @@ drawMind = do
|
||||||
)
|
)
|
||||||
([], posanims)
|
([], posanims)
|
||||||
((,)
|
((,)
|
||||||
<$> [1 .. (nrows $ mapMat $ stateData ud)]
|
<$> [1 .. (nrows $ mmImgMat $ stateData ud)]
|
||||||
<*> [1 .. (ncols $ mapMat $ stateData ud)]
|
<*> [1 .. (ncols $ mmImgMat $ stateData ud)]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue