Here is the long awaited CVS update:
http://www.devolution.com/~slouken/SDL/download.html
* Linux cdrom list now comes from /etc/fstab
* Fixed support for UK keyboard (thanks John Elliott)
* The event queue is now thread-safe
* Added event queue pump function: SDL_PumpEvents()
* Added low level event function: SDL_PeepEvents()
* Added a new thread function: SDL_ThreadID()
* Fixed an audio rate conversion memory overrun
* Fixed crash with RLE acceleration on big surfaces
* Improved MacOS display driver - added fullscreen
* Removed spurious warnings from Linux X11 driver
* Fixed memory leak in SDL_InvalidateMap()
* Fixed right button of 2-button mice on Win32
* Enabled XFree86 mode changes on older servers
The big changes are that SDL now supports a thread-safe event queue,
and if -DTHREADED_EVENTS is defined on Linux, a separate event thread
will be spawned to deliver events to the event queue asynchronously
from the main thread. This was a feature in 0.3, and is back and
works by popular demand.
To support this new event model, two new optional functions are available:
SDL_PumpEvents(), which is used to pump the event queue when
-DTHREADED_EVENTS is not defined.
and
SDL_PeepEvents(), which is used to manipulate the event queue
in a thread-safe manner. It even allows you to add your own
events to the queue.
See the new test program “threadwin.c” for an example of the new functions.
The old functions are still fully supported, and are implemented as
wrappers around the new functions.
Michael Mestre has contributed a new demo program:
“sierp”
It uses a very simple algorithm based on the color=x|y function,
which produces a sierpinsky-like image : very fun !
This is still just a CVS update release because the code has not been
fully tested on all supported platforms.
See ya!
-Sam Lantinga (slouken at devolution.com)