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
Simple Directmedia Layer Forums
[SDL 2] Freeze when closing the window.
Lolilolight
Joined: 07 Jun 2014
Posts: 17
Posted: Sat Mar 14, 2015 9:02 am
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
Posted: Sat Mar 14, 2015 12:57 pm
Erf c'est event.window.event et non window.event.type..., bref, je code du tutoriel que j'ai trouvé n'était pas bon...
Powered by
phpBB
© phpBB Group
Design by
Vjacheslav Trushkin
for
phpBBStyles.com
.
Content © SDL