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];

Mon, 21 Oct 2013 02:32:34 -0700Better fix for bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 02:32:34 -0700] rev 7872
Better fix for bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings

Jānis Rūcis

Reopening as compilation with ANSI C throws lots of unnecessary warnings, both using MinGW and using Linux GCC. (BTW, what happened? MinGW is broken to all hell. sdl2-config does not even link SDLMain anymore?)

I think this may have been lost somewhere, so again: GCC supports inlining via __inline__ in all known versions of GCC, regardless of the C standard in use. Please don't assume that __STRICT_ANSI__ implies no inlining support.

Mon, 21 Oct 2013 02:20:39 -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:20:39 -0700] rev 7871
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework

Mon, 21 Oct 2013 01:16:16 -0700Fixed some warnings building for 64-bit Windows
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 01:16:16 -0700] rev 7870
Fixed some warnings building for 64-bit Windows

Mon, 21 Oct 2013 00:30:05 -0700Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function
Sam Lantinga <slouken@libsdl.org> [Mon, 21 Oct 2013 00:30:05 -0700] rev 7869
Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function

Nitz 2013-08-06 03:53:41 UTC

In function SDLTest_ScreenShot() surface pointer getting leak while return