Add border to terminal display
This commit is contained in:
+16
-13
@@ -209,19 +209,22 @@ setupConLoop' ::
|
||||
(world -> Event -> world) ->
|
||||
IO ()
|
||||
setupConLoop' spf title winconfig paramCleanup ioStartWorld coneffs sideEffects eventFn = do
|
||||
initializeAll
|
||||
themvar <- newEmptyMVar
|
||||
bracket
|
||||
(createWindow title winconfig)
|
||||
destroyWindow
|
||||
$ \window -> bracket
|
||||
(glCreateContext window)
|
||||
(\con -> glFinish >> glDeleteContext con)
|
||||
$ \_ ->
|
||||
bracket
|
||||
ioStartWorld
|
||||
paramCleanup
|
||||
(doConLoop' themvar spf window coneffs sideEffects eventFn)
|
||||
bracket_
|
||||
initializeAll
|
||||
(putStrLn "Quit SDL" >> quit)
|
||||
$ do
|
||||
themvar <- newEmptyMVar
|
||||
bracket
|
||||
(createWindow title winconfig)
|
||||
destroyWindow
|
||||
$ \window -> bracket
|
||||
(glCreateContext window)
|
||||
(\con -> glFinish >> glDeleteContext con)
|
||||
$ \_ ->
|
||||
bracket
|
||||
ioStartWorld
|
||||
paramCleanup
|
||||
(doConLoop' themvar spf window coneffs sideEffects eventFn)
|
||||
|
||||
-- | The internal loop.
|
||||
doConLoop' ::
|
||||
|
||||
Reference in New Issue
Block a user