linted again
This commit is contained in:
parent
8104c636cd
commit
53f7a2af0e
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ pre = do
|
||||||
_ <- partSubscribe (subWindow subs) $ \msg -> case msg of
|
_ <- partSubscribe (subWindow subs) $ \msg -> case msg of
|
||||||
MsgWindowResize _ _ (V2 w h) -> do
|
MsgWindowResize _ _ (V2 w h) -> do
|
||||||
liftIO $ logIO A.Debug "Window has been resized"
|
liftIO $ logIO A.Debug "Window has been resized"
|
||||||
let nw = floor $ (fromIntegral h * (800/600) :: Double)
|
let nw = floor (fromIntegral h * (800/600) :: Double)
|
||||||
dw = floor $ ((fromIntegral w - fromIntegral nw) / 2 :: Double)
|
dw = floor ((fromIntegral w - fromIntegral nw) / 2 :: Double)
|
||||||
GL.viewport $= (GL.Position dw 0, GL.Size nw h)
|
GL.viewport $= (GL.Position dw 0, GL.Size nw h)
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
_ <- partSubscribe (subKeyboard subs) $ \kbdev ->
|
_ <- partSubscribe (subKeyboard subs) $ \kbdev ->
|
||||||
|
|
Loading…
Reference in a new issue