Skip to content

Conversation

@FilWisher
Copy link
Contributor

The getting started example in SDL.hs doesn't call 'destroyWindow' and
so leaves windows around. This adds this call and an additional comment
to explain in the example.

The getting started example in SDL.hs doesn't call 'destroyWindow' and
so leaves windows around. This adds this call and an additional comment
to explain in the example.
@ocharles
Copy link
Member

I'm surprised by

leaves windows around

Are you saying when you hit q the application quit but the window stays open?

@expipiplus1
Copy link
Contributor

While we're here, might it be a good example to make this exception safe?

@ocharles
Copy link
Member

No strong feelings on this, and it's probably good practice to call this explicitly. Thanks!

@ocharles ocharles merged commit a2646ed into haskell-game:master Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants