fixing error
This commit is contained in:
parent
eca9b1c629
commit
e99014f8f9
2 changed files with 2 additions and 2 deletions
|
@ -116,6 +116,6 @@ drawSpinner ctx x y cr ct = do
|
||||||
drawHaskelloid :: Haskelloid -> Affection UserData ()
|
drawHaskelloid :: Haskelloid -> Affection UserData ()
|
||||||
drawHaskelloid (Haskelloid pos _ rot _ d img) = do
|
drawHaskelloid (Haskelloid pos _ rot _ d img) = do
|
||||||
ctx <- nano <$> getAffection
|
ctx <- nano <$> getAffection
|
||||||
liftIO $ drawImage ctx img (pos - fmap (/2) dim) dim rot 255
|
liftIO $ drawImage ctx img (pos - fmap (/2) dim) dim rot 1
|
||||||
where
|
where
|
||||||
dim = fmap (/ fromIntegral d) (V2 100 100)
|
dim = fmap (/ fromIntegral d) (V2 100 100)
|
||||||
|
|
|
@ -238,7 +238,7 @@ drawWonLost wl = do
|
||||||
drawShip :: Ship -> Affection UserData ()
|
drawShip :: Ship -> Affection UserData ()
|
||||||
drawShip Ship{..} = do
|
drawShip Ship{..} = do
|
||||||
ctx <- nano <$> getAffection
|
ctx <- nano <$> getAffection
|
||||||
liftIO $ drawImage ctx sImg (sPos - fmap (/2) dim) dim sRot 255
|
liftIO $ drawImage ctx sImg (sPos - fmap (/2) dim) dim sRot 1
|
||||||
where
|
where
|
||||||
dim = V2 40 40
|
dim = V2 40 40
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue