The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL 2] Freeze when closing the window.
Lolilolight


Joined: 07 Jun 2014
Posts: 17
Hi everyone.

I'm getting a big freeze when closing the window!

Code:

if (event.window.type == SDL_WINDOWEVENT_CLOSE)


But this code works :

Code:

if (event.type == SDL_QUIT)


My OS is ubuntu 14.4 LTS.
Lolilolight


Joined: 07 Jun 2014
Posts: 17
Erf c'est event.window.event et non window.event.type..., bref, je code du tutoriel que j'ai trouvé n'était pas bon...