From 5014caee2a000ffd682f04bcbec76265b2163335 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 4 May 2009 20:07:48 +0000 Subject: Fix window close button to bring up F10 quit message. Subversion-branch: /branches/raven-branch Subversion-revision: 1506 --- src/doom/m_menu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/doom') diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c index a5e81775..4ca30926 100644 --- a/src/doom/m_menu.c +++ b/src/doom/m_menu.c @@ -1423,7 +1423,15 @@ boolean M_Responder (event_t* ev) static int lasty = 0; static int mousex = 0; static int lastx = 0; - + + // "close" button pressed on window? + if (ev->type == ev_quit) + { + S_StartSound(NULL,sfx_swtchn); + M_QuitDOOM(0); + return true; + } + // key is the key pressed, ch is the actual character typed ch = 0; -- cgit v1.2.3