Wed, 08 Feb 2006 17:23:32 +0000*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 17:23:32 +0000] rev 1349
*** empty log message ***

Wed, 08 Feb 2006 17:19:43 +0000Date: Mon, 6 Feb 2006 11:41:04 -0500
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 17:19:43 +0000] rev 1348
Date: Mon, 6 Feb 2006 11:41:04 -0500
From: "mystml@adinet.com.uy"
Subject: [SDL] ALT-F4 using DirectX

My game isn't getting SDL_QUIT when I press ALT-F4 using the DirectX
driver; it does get SDL_QUIT when I press the red X in the window.

I tracked this down to DX5_HandleMessage() in SDL_dx5events.c;
WM_SYSKEYDOWN is being trapped and ignored which causes Windows not to post
a WM_CLOSE, hence no SDL_QUIT is being generated.

The relevant code is this :

/* The keyboard is handled via DirectInput */
case WM_SYSKEYUP:
case WM_SYSKEYDOWN:
case WM_KEYUP:
case WM_KEYDOWN: {
/* Ignore windows keyboard messages */;
}
return(0);

If I comment the WM_SYSKEYDOWN case, it falls through DefWindowProc() and
ALT-F4 starts working again.

I'm not sure about the best way to fix this. One option is handling ALT-F4
as a particular case somehow, but doesn't sound good. Another option would
be to handle WM_SYSKEYDOWN separately and breaking instead of returning 0,
so processing falls through and goes to DefWindowProc which does The Right
Thing (TM). This seems to be the minimal change that makes ALT-F4 work and
normal keyboard input continues to work.

Does this sound reasonable? Am I overlooking anything? Do I submit a patch?

--Gabriel

Wed, 08 Feb 2006 09:06:34 +0000Check for strtod
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 09:06:34 +0000] rev 1347
Check for strtod

Wed, 08 Feb 2006 08:55:33 +0000Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 08:55:33 +0000] rev 1346
Default to build SDL without MSVCRT

Tue, 07 Feb 2006 18:36:54 +0000Fixes for Visual C++ 6.0
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 18:36:54 +0000] rev 1345
Fixes for Visual C++ 6.0

Tue, 07 Feb 2006 17:49:40 +0000G:\SDL-12-CVS\src\video\math_private.h(171) : error C4226:
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 17:49:40 +0000] rev 1344
G:\SDL-12-CVS\src\video\math_private.h(171) : error C4226:
nonstandard extension used : 'huge' is an obsolete keyword

Tue, 07 Feb 2006 17:46:19 +0000*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 17:46:19 +0000] rev 1343
*** empty log message ***

Tue, 07 Feb 2006 12:15:46 +0000Fixed it Hayashi Naoyuki's way. :)
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 12:15:46 +0000] rev 1342
Fixed it Hayashi Naoyuki's way. :)

Tue, 07 Feb 2006 12:11:33 +0000Configure dynamically generates SDL_config.h
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 12:11:33 +0000] rev 1341
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled

Tue, 07 Feb 2006 11:18:21 +0000Faster fades when changing to/from/between fullscreen modes on Mac OS X. Also,
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Feb 2006 11:18:21 +0000] rev 1340
Faster fades when changing to/from/between fullscreen modes on Mac OS X. Also,
it doesn't show the desktop between modes anymore.

Fixes Bugzilla #100.

--ryan.