What? Already?
Yes!
Announcing SDL 0.8e – it’s new! It’s better! It really is!
Available from:
http://www.devolution.com/~slouken/develop.html
This has a few bug fixes… thought I squashed them all, but…
Bug fixes:
Fixed display of bitmaps at 16 bpp
X11 applications don’t crash if they lose X11 display (Kill Client)
Fixed display of 32 bpp surface on 16 bpp displays using MMX
You no longer lose mouse-up events in Win32
Fixed crash if X11 DGA doesn’t have a video mode list
There are some really nice API changes – make your code simpler.
API changes:
-
Thanks to Mark Elliot:
Setting the video modes has become much simpler:
SDL_GetVideoMode() and SDL_VideoModeOK() have been removed,
and now getting a video mode is simply:
SDL_SetVideoMode(width, height, bpp, flags);
If you don’t care what bits-per-pixel you get, set ‘bpp’ to 0
If you have a preference, but can accept any bits-per-pixel,
set ‘bpp’ to your desired bpp, and pass in the SDL_ANYFORMAT flag. -
Thanks to Mark Elliot:
If the available video modes are larger than the requested video
mode, the smaller mode will be emulated by a black-bordered window
centered within the larger video mode.
(Note that changing the palette will affect the border color)The type of the width, height, and bpp arguments to SDL_SetVideoMode() have changed to int. The type of the clipping range arguments to SDL_SetClipping() have changed to int. SDL_MOUSEBUTTONEVENT has been separated into two events: SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP Otherwise, they are identical to the previous event type. SDL_KEYEVENT has been separated into two events: SDL_KEYDOWN, SDL_KEYUP Otherwise, they are identical to the previous event type.