Application's Window [X] (close) button does nothiing?

Application’s Window [X] (close) button does nothing ???

Hi,

I am making a Tetris game using S.D.L. 1.2.9 for the PC Windows platform.

The game is run in a 640 x 480 window.

When I run the game and try to click on the window’s [X] button to close the
application, nothing happens ??? (the mouse click is registered by the [X]
button, but the application’s window does not close/exit)

Do I need to read for this as an event and close the application manually ?
(currently I allow user to exit program by pressing the [Esc] key on
keyboard)

Thanks in advance!

My S.D.L. Tetris game programming project for PC Windows:
http://www.silentheroproductions.com/tetribattle3_100percentforpcwindows.htm

(http://www.silentheroproductions.com/tetribattle3_100percentforpcwindows.htm)

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at AOL.com
Silent Hero Productions ®
"Fun, little games for when you don’t have time to save the world.[TM]"
www.SilentHeroProductions.com (http://www.silentheroproductions.com/)

Do I need to read for this as an event and close the application manually ?

Yes. event.type will be SDL_QUIT when someone clicks the ‘X’. SDL won’t
shut down your program for you, it just tells you that the user is
requesting a shutdown and lets you choose to deal with it (or choose not
to deal with it).

–ryan.