Mon, 02 Jun 2014 09:01:10 -0700Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed
Sam Lantinga <slouken@libsdl.org> [Mon, 02 Jun 2014 09:01:10 -0700] rev 8798
Fixed bug 2479 - [OS X] SDL_SetWindowFullscreen fails to switch to windowed

Eric Wasylishen

The problem seems to be the spaces handling code in -setFullscreenSpace: (SDL_cocoawindow.m) is incorrectly reporting that the SDL_WINDOW_FULLSCREEN -> windowed transition has already happened.

i.e. I saw this case was getting hit when trying to leave SDL_WINDOW_FULLSCREEN:

"else if (state == isFullscreenSpace) {
return YES; /* already there. */
}"

With the attached patch, both Control+Enter (SDL_WINDOW_FULLSCREEN toggle) and Option+Enter (SDL_WINDOW_FULLSCREEN_DESKTOP toggle) work in an sdl test app (I tried testwm2). Tested on OS X 10.9.2.

Mon, 02 Jun 2014 08:58:07 -0700Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic.
Sam Lantinga <slouken@libsdl.org> [Mon, 02 Jun 2014 08:58:07 -0700] rev 8797
Don't use D3D9Ex by default, since it can change behavior for games which rely on D3D9 classic.

Sat, 31 May 2014 14:03:04 -0700Fixed bug 2520 - Held double-click app startup creates a stuck MOUSEBUTTONDOWN event
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 14:03:04 -0700] rev 8796
Fixed bug 2520 - Held double-click app startup creates a stuck MOUSEBUTTONDOWN event

snake5creator

When starting application with the usual "double click on file" method on Windows, only holding the last click, an unnecessary MOUSEBUTTONDOWN event is sent before the initial MOUSEMOTION event, and mouse button state is stuck in the sense that it takes a subsequent button release, followed by another press for the system to resume sending events (beginning with the next button release / MOUSEBUTTONUP event).

Input event log with held double-click startup: http://i.imgur.com/nypGKR2.png

Without: http://i.imgur.com/yaIqAvV.png

Sat, 31 May 2014 12:21:55 -0700Fullscreen to windowed mode switch
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 12:21:55 -0700] rev 8795
Fullscreen to windowed mode switch

From Melesie

I noticed that when user switches from fullscreen mode to windowed mode and exits application while in windowed mode, Windows performs an additional change of display settings, even though desktop resolution is the same as current one. This causes short black screen to show up. The only way I know of avoiding this is to explicitly switch to default display settings found in registry. MSDN documentation for ChangeDisplaySettingsEx states:

Passing NULL for the lpDevMode parameter and 0 for the dwFlags parameter is the easiest way to return to the default mode after a dynamic mode change.

Sat, 31 May 2014 11:53:19 -0700Fixed Direct3DCreate9Ex prototype
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 11:53:19 -0700] rev 8794
Fixed Direct3DCreate9Ex prototype

Sat, 31 May 2014 11:48:52 -0700Fixed cast
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 11:48:52 -0700] rev 8793
Fixed cast

Sat, 31 May 2014 11:37:12 -0700Use D3D9Ex when available
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 11:37:12 -0700] rev 8792
Use D3D9Ex when available
This hopefully works around crashes in Intel D3D9 support in Windows 8.1.

Sat, 31 May 2014 11:33:25 -0700Fixed SDL error when filtering events after shutdown.
Sam Lantinga <slouken@libsdl.org> [Sat, 31 May 2014 11:33:25 -0700] rev 8791
Fixed SDL error when filtering events after shutdown.
This can happen when restoring video modes during video system shutdown

Thu, 29 May 2014 23:05:18 +0200Added javadoc comments to document methods used by JNI.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 29 May 2014 23:05:18 +0200] rev 8790
Added javadoc comments to document methods used by JNI.

Thu, 29 May 2014 22:58:06 +0200Added javadoc comments to prevent unused parameter warning.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Thu, 29 May 2014 22:58:06 +0200] rev 8789
Added javadoc comments to prevent unused parameter warning.