This source is stable, and is fully tested on all supported platforms.
Please send bug reports or questions to the SDL mailing list:
The latest stable release may be found on the SDL website.

API Documentation

SDL 1.2.10 Release Notes

SDL 1.2.10 is a major release, featuring a revamp of the build system and many API improvements and bug fixes.

API enhancements

General Notes

The SDL website now has an RSS feed!

The SDL development source code is now managed with Subversion.

SDL now uses the Bugzilla bug tracking system, hosted by icculus.org.

SDL is licensed under version 2.1 of the GNU Lesser General Public License.

The entire build system has been revamped to make it much more portable, including versions of C library functions to make it possible to run SDL on a minimal embedded environment. See README.Porting in the SDL source distribution for information on how to port SDL to a new platform.

SDL_opengl.h has been updated with the latest glext.h from http://oss.sgi.com/projects/ogl-sample/registry/

Alex Volkov contributed highly optimized RGB <-> RGBA blitters.

Unix Notes

The X11 libraries are dynamically loaded at runtime by default. This allows the distributed version of SDL to run on systems without X11 libraries installed.

The XiG XME extension code is now included in the X11 video driver by default.

XRandR support for video mode switching has been added to the X11 driver, but is disabled because of undesired interactions with window managers. You can enable this by setting the environment variable SDL_VIDEO_X11_XRANDR to 1.

Xinerama multi-head displays are properly handled now, and the SDL_VIDEO_FULLSCREEN_HEAD environment variable can be used to select the screen used for fullscreen video modes. Note that changing the video modes only works on screen 0.

XVidMode video modes are now sorted so they maintain the refresh rates specified in the X11 configuration file.

SDL windows are no longer transparent in X11 compositing systems like XGL.

The mouse is properly released by the X11 video driver if the fullscreen window loses focus.

The X11 input driver now uses XIM to handle international input.

The screensaver and DPMS monitor blanking are disabled while SDL games are running under the X11 and DGA video drivers. This behavior will be formalized and selectable in SDL 1.3.

Fixed a bug preventing stereo OpenGL contexts from being selected on the X11 driver.

The DGA video driver now waits for pending blits involving surfaces before they are freed. This prevents display oddities when using SDL_DisplayFormat() to convert many images.

The framebuffer console video driver now has a parser for /etc/fb.modes for improved video mode handling.

The framebuffer console video driver now allows asynchronous VT switching, and restores the full contents of the screen when switched back.

The framebuffer console now uses CTRL-ALT-FN to switch virtual terminals, to avoid collisions with application key bindings.

The framebuffer console input driver correctly sets IMPS/2 mode for wheel mice. It also properly detects when gpm is in IMPS/2 protocol mode, or passing raw protocol from an IMPS/2 mouse.

The SVGAlib video driver now has support for banked (non-linear) video modes.

A video driver for OpenBSD on the Sharp Zaurus has been contributed by Staffan Ulfberg. See the file README.wscons in the SDL source distribution for details.

Many patches have been incorporated from *BSD ports.

Windows Notes

The "windib" video driver is the default now, to prevent problems with certain laptops, 64-bit Windows, and Windows Vista. The DirectX driver is still available, and can be selected by setting the environment variable SDL_VIDEODRIVER to "directx".

SDL has been ported to 64-bit Windows.

Dmitry Yakimov contributed a GAPI video driver for Windows CE.

The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions. A full API for querying and selecting refresh rates is planned for SDL 1.3.

Dialog boxes are now shown when SDL is in windowed OpenGL mode.

The SDL window is recreated when necessary to maintain OpenGL context attributes, when switching between windowed and fullscreen modes.

An SDL_VIDEORESIZE event is properly sent when the SDL window is maximized and restored.

Window positions are retained when switching between fullscreen and windowed modes.

ToUnicode() is used, when available, for improved handling of international keyboard input.

The PrtScrn is now treated normally with both key down and key up events.

Pressing ALT-F4 now delivers an SDL_QUIT event to SDL applications.

Joystick names are now correct for joysticks which have been unplugged and then plugged back in since booting.

An MCI error when playing the last track on a CD-ROM has been fixed.

OpenWatcom projects for building SDL have been provided by Marc Peter.

Mac OS X Notes

SDL now supports building Universal binaries, both through Xcode projects and when using configure/make. See README.MacOSX in the SDL source archive for details.

The X11 video driver with GLX support can be built on Mac OS X, if the X11 development SDK is installed.

Transitions between fullscreen resolutions and windowed mode now use a much faster asynchronous fade to hide desktop flicker.

Icons set with SDL_WM_SetIcon() now have the proper colors on Intel Macs.

OS/2 Notes

Projects for building SDL on OS/2 with OpenWatcom have been contributed by Doodle. See the file README.OS2 in the SDL source distribution for details.