Tue, 22 Oct 2013 21:54:52 -0700Fixed duplicate const warning
Sam Lantinga <slouken@libsdl.org> [Tue, 22 Oct 2013 21:54:52 -0700] rev 7882
Fixed duplicate const warning

Tue, 22 Oct 2013 21:53:58 -0700SDL 2.0.0 defined __inline__ and some code relies on it now.
Sam Lantinga <slouken@libsdl.org> [Tue, 22 Oct 2013 21:53:58 -0700] rev 7881
SDL 2.0.0 defined __inline__ and some code relies on it now.

Tue, 22 Oct 2013 21:53:42 -0700Testing fullscreen window in the accelerometer test.
Sam Lantinga <slouken@libsdl.org> [Tue, 22 Oct 2013 21:53:42 -0700] rev 7880
Testing fullscreen window in the accelerometer test.

Mon, 21 Oct 2013 23:17:37 -0700Fix error assert for negative cases of pixels_getPixelFormatName test
Andreas Schiffler <aschiffler@ferzkopp.net> [Mon, 21 Oct 2013 23:17:37 -0700] rev 7879
Fix error assert for negative cases of pixels_getPixelFormatName test

Mon, 21 Oct 2013 22:27:07 -0700Added patch notes for 2.0.1
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 22:27:07 -0700] rev 7878
Added patch notes for 2.0.1

Mon, 21 Oct 2013 22:08:56 -0700Fixed whitespace
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 22:08:56 -0700] rev 7877
Fixed whitespace

Mon, 21 Oct 2013 10:28:57 -0700Revert fix for bug 1392 because it breaks linking with mingw32
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 10:28:57 -0700] rev 7876
Revert fix for bug 1392 because it breaks linking with mingw32

Mon, 21 Oct 2013 02:46:16 -0700Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 02:46:16 -0700] rev 7875
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework

Alex Szpakowski

I actually made a mistake when creating the previous patch file... I forgot to include a crucial line which changed.

I've attached a new patch which just changes the line I forgot, since the other part has already been applied to the repository.
I tested this one by doing a clean rebuild of SDL, and it works with the new patch.

Mon, 21 Oct 2013 02:38:23 -0700We don't have API changes documented yet.
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 02:38:23 -0700] rev 7874
We don't have API changes documented yet.

Mon, 21 Oct 2013 02:37:03 -0700Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 02:37:03 -0700] rev 7873
Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode

Alex Szpakowski

In Mac OS X, when SDL_SetWindowFullscreen(window, 0) is called on a window which was in SDL_WINDOW_FULLSCREEN_DESKTOP mode, its original size is restored but its position is moved to the bottom of the screen.

I tracked down the issue to these two lines: http://hg.libsdl.org/SDL/file/66b5b8446275/src/video/cocoa/SDL_cocoawindow.m#l1034

I believe [nswindow setFrameOrigin:rect.origin] implicitly calls [nswindow constrainFrameRect:rect toScreen:screen], which will attempt to constrain the window to the screen, but at that point the window size is still full-screen rather than the restored window size, so the constrainFrameRect function operates on the wrong window size.

https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/constrainFrameRect:toScreen:

I resolved the issue by swapping the order of the function calls, like so:
[nswindow setContentSize:rect.size];
[nswindow setFrameOrigin:rect.origin];