Sdl 1.2.14 released!

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

This release is intended to clean up the bug list for SDL 1.2 and let
us focus on new development for SDL 1.3!

I would like to thank everybody who contributed bug reports and fixes
for this release!

General Notes

* Fixed flicker when resizing the SDL window
* Fixed crash in SDL_SetGammaRamp()
* Fixed freeze in SDL_memset() with 0 length when assembly code is disabled.
* Added SDL_DISABLE_LOCK_KEYS environment variable to enable

normal up/down events for Caps-Lock and Num-Lock keys.
* Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
* Fixed a threading crash when a few threads are rapidly created
and complete.
* Increased accuracy of alpha blending routines.
* Fixed crash loading BMP files saved with the scanlines inverted.
* Fixed mouse coordinate clamping if SDL_SetVideoMode() isn’t
called in response to SDL_VIDEORESIZE event.
* Added doxygen documentation for the SDL API headers.

Unix Notes

* Fixed potential memory corruption due to assembly bug with SDL_revcpy()
* Fixed crashes trying to detect SSE features on x86_64 architecture.
* Fixed assembly for GCC optimized 50% alpha blending blits.
* Added configure option --enable-screensaver, to allow enabling

the screensaver by default.
* Use XResetScreenSaver() instead of disabling screensaver entirely.
* Removed the maximum window size limitation on X11.
* Fixed SDL_GL_SWAP_CONTROL on X11.
* Fixed setting the X11 window input hint.
* Fixed distorted X11 window icon for some visuals.
* Fixed detecting X11 libraries for dynamic loading on 64-bit Linux.
* SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) returns the correct
value with GLX_SGI_swap_control.
* Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for
SDL_VIDEO_FULLSCREEN_HEAD on X11.
* The SDL_VIDEO_FULLSCREEN_DISPLAY environment variable can be set
to 0 to place fullscreen SDL windows on the first Xinerama screen.
* Added the SDL_VIDEO_FBCON_ROTATION environment variable to
control output orientation on the framebuffer console.
Valid values are:
o not set - Not rotating, no shadow.
o “NONE” - Not rotating, but still using shadow.
o “CW” - Rotating screen clockwise.
o “UD” - Rotating screen upside down.
o “CCW” - Rotating screen counter clockwise.
* Fixed DirectFB detection on some Linux distributions.
* Added code to use the PS3 SPE processors for YUV conversion on Linux.
* Updated ALSA support to the latest stable API
* ALSA is now preferred over OSS audio. (SDL_AUDIODRIVER=dsp will
restore the previous behavior.)
* Improved support for PulseAudio
* The Network Audio System support is now dynamically loaded at runtime.
* Fixed crash with the MP-8866 Dual USB Joypad on newer Linux kernels.
* Fixed crash in SDL_Quit() when a joystick has been unplugged.

Windows Notes

* Verified 100% compatibility with Windows 7.
* Prevent loss of OpenGL context when setting the video mode in

response to a window resize event.
* Fixed video initialization with SDL_WINDOWID on Windows XP.
* Improved mouse input responsiveness for first-person-shooter games.
* IME messages are now generated for localized input.
* SDL_RWFromFile() takes a UTF-8 filename when opening a file.
* The SDL_STDIO_REDIRECT environment variable can be used to
override whether SDL redirects stdio to stdout.txt and stderr.txt.
* Fixed dynamic object loading on Windows CE.

Mac OS X Notes

* SDL now builds on Mac OS X 10.6 (Snow Leopard).
  Eric Wing posted a good rundown on the numerous changes here:

http://playcontrol.net/ewing/jibberjabber/big_behind-the-scenes_chang.html
* The X11 video driver is built by default.
* Fixed SDL_VIDEO_WINDOW_POS environment variable for Quartz target.
* Fixed setting the starting working directory in release builds.–
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

2009/10/20 Sam Lantinga :

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

It looks like you have some Mac OS X junk in the mingw development
archive. Lots of ._* files.

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

This release is intended to clean up the bug list for SDL 1.2 and let
us focus on new development for SDL 1.3!

Nice work, SDL 1.2.14 looks really yummy, esp. for Mac OS X folks. I
already packaged it for Fink and am waiting for testing feedback.

In the meantime, I wonder: Have SDL_mixer and SDL_image also been
officially released? I see files for them and their websites have been
updated, but haven’t seen an announcement.

OTOH, SDL_ttf still is listed as 2.0.9. Is there something delaying
2.0.10 ?

Cheers,
MaxAm 20.10.2009 um 07:18 schrieb Sam Lantinga:

Installed the library and xcode templates. Created a new project and launched the build.

It fails with the following :

error: There is no SDK with the name or path “macosx10.4”------------------------
Vinay Menon

That means you didn’t install the 10.4u SDK when you installed Xcode.
Either change your project settings to change the Base SDK to
something else, or install the 10.4u SDK.

-EricOn 10/20/09, vmmenon wrote:

Installed the library and xcode templates. Created a new project and
launched the build.

It fails with the following :

error: There is no SDK with the name or path “macosx10.4”

I tried that too. Tried both the 10.5 and 10.6 SDK’s.

Still get the same error.------------------------
Vinay Menon

There is a place in the build settings for the project that it
explicitly sets 10.6 for 64-bit Intel and 10.4u for everything else.
This is in the build settings tab. This is probably what you need to
change/delete.

I’m guessing you are changing it from the General tab. The other
setting overrides this one.

-EricOn 10/20/09, vmmenon wrote:

I tried that too. Tried both the 10.5 and 10.6 SDK’s.

Still get the same error.

That was it … Thanks Eric.------------------------
Vinay Menon

Fixed, thanks!On Tue, Oct 20, 2009 at 12:32 AM, Kenneth Bull wrote:

2009/10/20 Sam Lantinga <@slouken>:

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

It looks like you have some Mac OS X junk in the mingw development
archive. ?Lots of ._* files.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I’m having trouble building 1.2.14 with Visual C++ 2005 Express -
Release_NoSTDIO complains about several undefined symbols. Adding
user32.lib, gdi32.lib and advapi32.lib to Linker/IInput/Additional
Dependencies does the trick.

I’m also tracking down a weird bug that manifests sometimes when switching
windowed -> fullscreen -> windowed - the resulting window is a bit shorter
than it should be - I think some calculation is not adding the height of the
title bar. This happens at least in Windows XP and Vista (Linux and Mac seem
to work fine). This also works fine in SDL 1.2.11 and lower, and it’s broken
in 1.2.14, I’m building 1.2.12 and 1.2.13 to isolate the bug and hopefully
patch it.

–GabrielOn Wed, Oct 21, 2009 at 2:37 AM, Sam Lantinga wrote:

Fixed, thanks!

On Tue, Oct 20, 2009 at 12:32 AM, Kenneth Bull wrote:

2009/10/20 Sam Lantinga :

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

It looks like you have some Mac OS X junk in the mingw development
archive. Lots of ._* files.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I found the change from 1.2.13 to 1.2.14 that causes the bug. It’s in
SDL_sysevents.c :

    case WM_WINDOWPOSCHANGING: {
        WINDOWPOS *windowpos = (WINDOWPOS*)lParam;

        /* When menu is at the side or top, Windows likes
           to try to reposition the fullscreen window when
           changing video modes.
         */
        if ( !SDL_resizing &&
             SDL_PublicSurface &&
             (SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
            windowpos->x = 0;
            windowpos->y = 0;
        }
    }
    return(0);

Commenting out that section in SDL 1.2.14 makes the bug go away. However,
I’m not sure why it applies to my case, since I’m doing windowed -> full ->
windowed, the first time works fine, and the second time the surface
shouldn’t have the SDL_FULLSCREEN flag… any ideas?

–GabrielOn Wed, Oct 28, 2009 at 11:26 AM, Gabriel Gambetta wrote:

I’m having trouble building 1.2.14 with Visual C++ 2005 Express -
Release_NoSTDIO complains about several undefined symbols. Adding
user32.lib, gdi32.lib and advapi32.lib to Linker/IInput/Additional
Dependencies does the trick.

I’m also tracking down a weird bug that manifests sometimes when switching
windowed -> fullscreen -> windowed - the resulting window is a bit shorter
than it should be - I think some calculation is not adding the height of the
title bar. This happens at least in Windows XP and Vista (Linux and Mac seem
to work fine). This also works fine in SDL 1.2.11 and lower, and it’s broken
in 1.2.14, I’m building 1.2.12 and 1.2.13 to isolate the bug and hopefully
patch it.

–Gabriel

On Wed, Oct 21, 2009 at 2:37 AM, Sam Lantinga wrote:

Fixed, thanks!

On Tue, Oct 20, 2009 at 12:32 AM, Kenneth Bull wrote:

2009/10/20 Sam Lantinga :

Welcome to the last planned release for SDL 1.2!
http://www.libsdl.org/download-1.2.php

It looks like you have some Mac OS X junk in the mingw development
archive. Lots of ._* files.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org