author Ozkan Sezer <sezeroz@gmail.com>
Sun, 04 Aug 2019 04:55:04 +0300
changeset 12993 e7ee29d04712
parent 12989 f4dccc2744a2
child 13009 12a87fcb4d97
permissions -rw-r--r--
updated docs for changes so far.
     2 This is a list of API changes in SDL's version history.
     4 Version 1.0:
     6 1.2.16:  This is mostly multiple bug fixes since the previous version.
     7 Changes include:
     8 - Audio, wav loader: security fixes for ADPCM decoding (CVE-2019-7572,
     9   CVE-2019-7573, CVE-2019-7574, CVE-2019-7575, CVE-2019-7576,
    10   CVE-2019-7577, CVE-2019-7578 -- bugs 4490, 4491, 4492, 4493, 4494,
    11   4495, 4496, and 4522.)
    12 - Video, bmp loader:  security fixes for CVE-2019-7635, CVE-2019-7636,
    13   CVE-2019-7637, CVE-2019-7638, CVE-2019-13616 (bugs 4498, 4499, 4500,
    14   4517, and 4538.)
    15 - Video, blit: fix handling of alpha channel in Altivec accelerated
    16   blit functions (bug 1424.)
    17 - Video, blit: use fast path for RGB 565 -> 32-bit XRGB 8888
    18 - Video, blit: fix RGBA<->RGBA blit broken with the optimization from
    19   bug 11 (bug 2976.)
    20 - Mouse: fix SDL_ResetMouse() using a bogus mouse button causing a
    21   negative shift (bug 3593.)
    22 - Cdrom: fix SDL_CDResume() and SDL_CDStop() not returning failure
    23   when they should (bug 4108.)
    24 - Unix, pthread: Fix SDL_SemWaitTimeout() returning -1 instead of
    25   SDL_MUTEX_TIMEDOUT upon timeout (bug 1426.)
    26 - NetBSD: wscons support.
    27 - NetBSD, audio: use AUDIO_GETBUFINFO when available.
    28 - OpenBSD, audio: add sndio support.
    29 - Haiku/BeOS, audio: fix error in buffer size setting (bug 1679.)
    30 - OpenBSD: fix dynamic loading of X libs (bug 1434.)
    31 - X11video: fix missing symbol X11_KeyToUnicode in .so file (bug 1390.
    32   not being an official SDL function, the use of X11_KeyToUnicode() is
    33   discouraged.)
    34 - X11video: fix compilation with libX11 >= (bug 1769.)
    35 - X11video: fix for XChangeProperty() crash (bug 1427.)
    36 - X11video: fix SDL_EnableUNICODE sometimes dropping keyboard events
    37   completely (bug 2325.)
    38 - X11video: fix no SDL_VIDEORESIZE event being generated when the
    39   window manager sets the window size (bug 1859.)
    40 - X11video: fix X11_SetGammaRamp not checking the return value of
    41   XStoreColors (bugs 1979, 3770.)
    42 - X11video: fix SDL_VIDEORESIZE events not received when resizing
    43   window from the corner (inverted logic in X11 ConfigureNotify, i.e.
    44   resize handling - bug 1430.)
    45 - X11video: unblock SDL_WM_GrabInput() GrabNotViewable case (bug 1155.)
    46 - Mac OS X: fix crash on any input in Quartz code (bug 2560.)
    47 - Mac OS X: fix crash in Quartz gamma ramp code.
    48 - Mac OS X: fix build for 10.9 Mavericks or newer (bug 2085.)
    49 - Mac OS X, Quartz: fix cursor transparency (bug 4076.)
    50 - Mac OS X, joystick: update to support Saitek p2500 gamepad (bug 2025)
    51 - Mac OS X, main: updates for -psn_XXX command line arg for Finder
    52   launches in new macOS versions.
    53 - Mac OS X, main: replace deprecated CPS apis in new OSX versions
    54   (bug 4114.)
    55 - Windows, video: fix other window positions/sizes when exiting
    56   fullscreen (bug 3315.)
    57 - Windows, keyboard: reset deadkeys upon SDL_EnableUNICODE() or upon
    58   quit (bug 3332.)
    59 - Windows: Visual Studio project file updates.
    60 - OS/2: Watcom makefile updates.
    61 - FreeBSD, joystick: compile fixes.
    62 - BSD, joystick: increase the number of uhid devices to scan (bug 1561)
    63 - Linux, evdev: ignore joystick axis events if they aren't in a sane
    64   range.
    65 - Linux, joystick: fix Dualshock 3's motion sensors overwrite analog
    66   stick: protect against any axis that isn't reported by EVIOCGBIT but
    67   still sending EV_ABS events (bug 3193.)
    68 - FreeBSD, cdrom: fix CDROM detection misbehaviour for 7.x and newer
    69   (bug 1529.)
    70 - Solaris, audio: fix pulseaudio dynamic linking.
    71 - Solaris, cpuinfo: fix asm syntax error causing build failures.
    72 - Atari: multiple platform code updates.
    73 - RiscOS: cleanups to platform code.
    74 - RiscOS: fix thread starvation in fullscreen mode.
    75 - RiscOS: fix returning from full-screen to 16M colour modes.
    76 - RiscOS: fix receiving PreQuit messages.
    77 - RiscOS: ensure the window size is consistent at different DPIs.
    78 - RiscOS, video: add support for more pixel formats.
    79 - RiscOS: mouse fixes. restore mouse palette when exiting while mouse
    80   is in focus. don't reset mouse focus when recreating the window.
    81 - RiscOS: support Windows and Menu key input.
    82 - Configuration: fix library detection selecting wrong lib (bug 2795.)
    83 - Configuration: fix detecting dynamic library support on powerpc64le
    84   (bug 3481.)
    85 - SDL error: string formatting fixes to deal with nasty corner cases
    86   (bug 2049.)
    87 - SDL_error: handle %lu, %li and %ld in format string (bug 3739.)
    88 - stdlib: updated SDL_qsort() code.
    89 - stdlib: use _strtoi64() and _strtoui64() when available for windows.
    90 - headers, close_code.h: fix unbalanced #pragma pack(pop) for watcom
    91   builds (bug 3781.)
    92 - headers, begin_code.h, close_code.h: updates to SDLCALL and DECLSPEC
    93   macros for OS/2.
    94 - headers, endian: add Watcom inline asm for SDL_Swap16 and SDL_Swap32
    95 - headers, config: updates to default windows and os2 config files.
    96 - headers, SDL_syswm.h, SDL_stdinc.h: include system headers before
    97   packing alignment changes (bug 4149.)
   100 1.2.15:  This is a minor bug fix release:
   102 General Notes:
   103 - Fixed assembly register clobbering in CPU info routines.
   104 - Fixed memory stomp when using stretch blit on large images.
   105 - Fixed pixel corruption with overlapping blits.
   106 - SDL_JOYSTICK_DEVICE can be a colon separated list of joystick devices.
   107 - Disabled MMX blitters since they don't compile on modern compilers.
   109 Unix Notes:
   110 - Fixed crash in joystick code on newer Linux kernels.
   111 - Fixed channel swizzling for ALSA target with 6-channel output.
   112 - Use the OpenGL GLX_EXT_swap_control extension if available.
   113 - XRandR support is disabled by default because it causes desktop
   114   reconfiguring. It can be enabled with the SDL_VIDEO_X11_XRANDR=1
   115   environment variable.
   117 Windows Notes:
   118 - Fixed SDL_GL_ACCELERATED_VISUAL handling.
   119 - Fixed application state handling with ALT-Tab.
   120 - Fixed occasional crash handling WM_ACTIVATEAPP in Direct X code.
   121 - Fixed UTF-8 decoding of Russian characters.
   123 Mac OS X Notes:
   124 - Fixed building and running on Mac OS X 10.7 (Lion).
   127 1.2.14:
   128 	Added cast macros for correct usage with C++:
   129 		SDL_reinterpret_cast(type, expression)
   130 		SDL_static_cast(type, expression)
   132 	Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for 
   135 	Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal
   136 	up/down events for Caps-Lock and Num-Lock keys.
   138 1.2.13:
   139 	Added SDL_BUTTON_X1 and SDL_BUTTON_X2 constants.
   141 1.2.12:
   142 	Added SDL_VIDEO_ALLOW_SCREENSAVER to override SDL's disabling
   143 	of the screensaver on Mac OS X and X11.
   145 1.2.10:
   146 	If SDL_OpenAudio() is passed zero for the desired format
   147 	fields, the following environment variables will be used
   148 	to fill them in:
   153 	If an environment variable is not specified, it will be set
   154 	to a reasonable default value.
   156 	Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment
   157 	variable, currently supported on X11 Xinerama configurations.
   159 	Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications.
   161 	Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
   163 	Added current_w and current_h to the SDL_VideoInfo structure,
   164 	which is set to the desktop resolution during video intialization,
   165 	and then set to the current resolution when a video mode is set.
   167 	SDL_SetVideoMode() now accepts 0 for width or height and will use
   168 	the current video mode (or the desktop mode if no mode has been set.)
   170 	Added SDL_GetKeyRepeat()
   172 	Added SDL_config.h, with defaults for various build environments.
   174 1.2.7:
   175 	Added CPU feature detection functions to SDL_cpuinfo.h:
   176 		SDL_HasRDTSC(), SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE(),
   177 		SDL_HasAltiVec()
   178 	Added function to create RWops from const memory: SDL_RWFromConstMem()
   180 1.2.6:
   181 	Added SDL_LoadObject(), SDL_LoadFunction(), and SDL_UnloadObject()
   185 1.2.5:
   188 	Added SDL_GL_STEREO for stereoscopic OpenGL contexts
   190 1.2.0:
   191 	Added SDL_VIDEOEXPOSE event to signal that the screen needs to
   192 	be redrawn.  This is currently only delivered to OpenGL windows
   193 	on X11, though it may be delivered in the future when the video
   194 	memory is lost under DirectX.
   196 1.1.8:
   197 	You can pass SDL_NOFRAME to SDL_VideoMode() to create a window
   198 	that has no title bar or frame decoration.  Fullscreen video
   199 	modes automatically have this flag set.
   201 	Added a function to query the clipping rectangle for a surface:
   202 		void SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect)
   204 	Added a function to query the current event filter:
   205 		SDL_EventFilter SDL_GetEventFilter(void)
   207 	If you pass -1 to SDL_ShowCursor(), it won't change the current
   208 	cursor visibility state, but will still return it.
   210 	SDL_LockSurface() and SDL_UnlockSurface() are recursive, meaning
   211 	you can nest them as deep as you want, as long as each lock call
   212 	has a matching unlock call.  The surface remains locked until the
   213 	last matching unlock call.
   215 	Note that you may not blit to or from a locked surface.
   217 1.1.7:
   218 	The SDL_SetGammaRamp() and SDL_GetGammaRamp() functions now take
   219 	arrays of Uint16 values instead of Uint8 values.  For the most part,
   220 	you can just take your old values and shift them up 8 bits to get
   221 	new correct values for your gamma ramps.
   223 	You can pass SDL_RLEACCEL in flags passed to SDL_ConvertSurface()
   224         and SDL will try to RLE accelerate colorkey and alpha blits in the
   225 	resulting surface.
   227 1.1.6:
   228 	Added a function to return the thread ID of a specific thread:
   229 		Uint32 SDL_GetThreadID(SDL_Thread *thread)
   230 	If 'thread' is NULL, this function returns the id for this thread.
   232 1.1.5:
   233 	The YUV overlay structure has been changed to use an array of
   234 	pitches and pixels representing the planes of a YUV image, to
   235 	better enable hardware acceleration.  The YV12 and IYUV formats
   236 	each have three planes, corresponding to the Y, U, and V portions
   237 	of the image, while packed pixel YUV formats just have one plane.
   239 	For palettized mode (8bpp), the screen colormap is now split in
   240 	a physical and a logical palette. The physical palette determines
   241 	what colours the screen pixels will get when displayed, and the
   242 	logical palette controls the mapping from blits to/from the screen.
   243 	A new function, SDL_SetPalette() has been added to change
   244 	logical and physical palettes separately. SDL_SetColors() works
   245 	just as before, and is equivalent to calling SDL_SetPalette() with
   246 	a flag argument of (SDL_LOGPAL|SDL_PHYSPAL).
   248 	SDL_BlitSurface() no longer modifies the source rectangle, only the
   249 	destination rectangle. The width/height members of the destination
   250 	rectangle are ignored, only the position is used.
   252 	The old source clipping function SDL_SetClipping() has been replaced
   253 	with a more useful function to set the destination clipping rectangle:
   254 		SDL_bool SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect)
   256 	Added a function to see what subsystems have been initialized:
   257 		Uint32 SDL_WasInit(Uint32 flags)
   259 	The Big Alpha Flip: SDL now treats alpha as opacity like everybody
   260 	else, and not as transparency:
   262 	A new cpp symbol: SDL_ALPHA_OPAQUE is defined as 255
   263 	A new cpp symbol: SDL_ALPHA_TRANSPARENT is defined as 0
   264 	Values between 0 and 255 vary from fully transparent to fully opaque.
   266 	New functions:
   267 	SDL_DisplayFormatAlpha()
   268 	    Returns a surface converted to a format with alpha-channel
   269 	    that can be blit efficiently to the screen. (In other words,
   270 	    like SDL_DisplayFormat() but the resulting surface has
   271 	    an alpha channel.)  This is useful for surfaces with alpha.
   272 	SDL_MapRGBA()
   273 	    Works as SDL_MapRGB() but takes an additional alpha parameter.
   274 	SDL_GetRGBA()
   275 	    Works as SDL_GetRGB() but also returns the alpha value
   276 	    (SDL_ALPHA_OPAQUE for formats without an alpha channel)
   278 	Both SDL_GetRGB() and SDL_GetRGBA() now always return values in
   279 	the [0..255] interval. Previously, SDL_GetRGB() would return
   280 	(0xf8, 0xfc, 0xf8) for a completely white pixel in RGB565 format.
   281 	(N.B.: This is broken for bit fields < 3 bits.)
   283 	SDL_MapRGB() returns pixels in which the alpha channel is set opaque.
   285 	SDL_SetAlpha() can now be used for both setting the per-surface
   286 	alpha, using the new way of thinking of alpha, and also to enable
   287 	and disable per-pixel alpha blending for surfaces with an alpha
   288 	channel:
   289 		To disable alpha blending:
   290 			SDL_SetAlpha(surface, 0, 0);
   291 		To re-enable alpha blending:
   292 			SDL_SetAlpha(surface, SDL_SRCALPHA, 0);
   293 	Surfaces with an alpha channel have blending enabled by default.
   295 	SDL_SetAlpha() now accepts SDL_RLEACCEL as a flag, which requests
   296 	RLE acceleration of blits, just as like with SDL_SetColorKey().
   297 	This flag can be set for both surfaces with an alpha channel
   298 	and surfaces with an alpha value set by SDL_SetAlpha().
   299 	As always, RLE surfaces must be locked before pixel access is
   300 	allowed, and unlocked before any other SDL operations are done
   301 	on it.
   303 	The blit semantics for surfaces with and without alpha and colorkey
   304 	have now been defined:
   306 	RGBA->RGB:
   307 	    SDL_SRCALPHA set:
   308 		alpha-blend (using alpha-channel).
   309 		SDL_SRCCOLORKEY ignored.
   310 	    SDL_SRCALPHA not set:
   311 		copy RGB.
   312 		if SDL_SRCCOLORKEY set, only copy the pixels matching the
   313 		RGB values of the source colour key, ignoring alpha in the
   314 		comparison.
   316 	RGB->RGBA:
   317 	    SDL_SRCALPHA set:
   318 		alpha-blend (using the source per-surface alpha value);
   319 		set destination alpha to opaque.
   320 	    SDL_SRCALPHA not set:
   321 		copy RGB, set destination alpha to opaque.
   322 	    both:
   323 		if SDL_SRCCOLORKEY set, only copy the pixels matching the
   324 		source colour key.
   326 	RGBA->RGBA:
   327 	    SDL_SRCALPHA set:
   328 		alpha-blend (using the source alpha channel) the RGB values;
   329 		leave destination alpha untouched. [Note: is this correct?]
   330 		SDL_SRCCOLORKEY ignored.
   331 	    SDL_SRCALPHA not set:
   332 		copy all of RGBA to the destination.
   333 		if SDL_SRCCOLORKEY set, only copy the pixels matching the
   334 		RGB values of the source colour key, ignoring alpha in the
   335 		comparison.
   337 	RGB->RGB: 
   338 	    SDL_SRCALPHA set:
   339 		alpha-blend (using the source per-surface alpha value).
   340 	    SDL_SRCALPHA not set:
   341 		copy RGB.
   342 	    both:
   343 		if SDL_SRCCOLORKEY set, only copy the pixels matching the
   344 		source colour key.
   346 	As a special case, blits from surfaces with per-surface alpha
   347 	value of 128 (50% transparency) are optimised and much faster
   348 	than other alpha values. This does not apply to surfaces with
   349 	alpha channels (per-pixel alpha).
   351 	New functions for manipulating the gamma of the display have
   352 	been added:
   353 		int SDL_SetGamma(float red, float green, float blue);
   354 		int SDL_SetGammaRamp(Uint8 *red, Uint8 *green, Uint8 *blue);
   355 		int SDL_GetGammaRamp(Uint8 *red, Uint8 *green, Uint8 *blue);
   356 	Gamma ramps are tables with 256 entries which map the screen color
   357 	components into actually displayed colors.  For an example of
   358 	implementing gamma correction and gamma fades, see test/testgamma.c
   359 	Gamma control is not supported on all hardware.
   361 1.1.4:
   362 	The size of the SDL_CDtrack structure changed from 8 to 12 bytes
   363 	as the size of the length member was extended to 32 bits.
   365         You can now use SDL for 2D blitting with a GL mode by passing the
   366 	SDL_OPENGLBLIT flag to SDL_SetVideoMode().  You can specify 16 or
   367 	32 bpp, and the data in the framebuffer is put into the GL scene
   368 	when you call SDL_UpdateRects(), and the scene will be visible
   369 	when you call SDL_GL_SwapBuffers().
   371 	Run the "testgl" test program with the -logo command line option
   372 	to see an example of this blending of 2D and 3D in SDL.
   374 1.1.3:
   375 	Added SDL_FreeRW() to the API, to complement SDL_AllocRW()
   377 	Added resizable window support - just add SDL_RESIZABLE to the
   378 	SDL_SetVideoMode() flags, and then wait for SDL_VIDEORESIZE events.
   379 	See SDL_events.h for details on the new SDL_ResizeEvent structure.
   381 	Added condition variable support, based on mutexes and semaphores.
   382 		SDL_CreateCond()
   383 		SDL_DestroyCond()
   384 		SDL_CondSignal()
   385 		SDL_CondBroadcast()
   386 		SDL_CondWait()
   387 		SDL_CondTimedWait()
   388 	The new function prototypes are in SDL_mutex.h
   390 	Added counting semaphore support, based on the mutex primitive.
   391 		SDL_CreateSemaphore()
   392 		SDL_DestroySemaphore()
   393 		SDL_SemWait()
   394 		SDL_SemTryWait()
   395 		SDL_SemWaitTimeout()
   396 		SDL_SemPost()
   397 		SDL_SemValue()
   398 	The new function prototypes are in SDL_mutex.h
   400 	Added support for asynchronous blitting.  To take advantage of this,
   401 	you must set the SDL_ASYNCBLIT flag when setting the video mode and
   402 	creating surfaces that you want accelerated in this way.  You must
   403 	lock surfaces that have this flag set, and the lock will block until
   404 	any queued blits have completed.
   406 	Added YUV video overlay support.
   407 	The supported YUV formats are: YV12, IYUV, YUY2, UYVY, and YVYU.
   408 	This function creates an overlay surface:
   409 		SDL_CreateYUVOverlay()
   410 	You must lock and unlock the overlay to get access to the data:
   411 		SDL_LockYUVOverlay() SDL_UnlockYUVOverlay()
   412 	You can then display the overlay:
   413 		SDL_DisplayYUVOverlay()
   414 	You must free the overlay when you are done using it:
   415 		SDL_FreeYUVOverlay()
   416 	See SDL_video.h for the full function prototypes.
   418 	The joystick hat position constants have been changed:
   419 	Old constant            New constant
   420 	------------            ------------
   421 	     0                  SDL_HAT_CENTERED
   422 	     1                  SDL_HAT_UP
   423 	     2                  SDL_HAT_RIGHTUP
   424 	     3                  SDL_HAT_RIGHT
   425 	     4                  SDL_HAT_RIGHTDOWN
   426 	     5                  SDL_HAT_DOWN
   427 	     6                  SDL_HAT_LEFTDOWN
   428 	     7                  SDL_HAT_LEFT
   429 	     8                  SDL_HAT_LEFTUP
   430 	The new constants are bitmasks, so you can check for the
   431 	individual axes like this:
   432 		if ( hat_position & SDL_HAT_UP ) {
   433 		}
   434 	and you'll catch left-up, up, and right-up.
   436 1.1.2:
   437 	Added multiple timer support:
   438 		SDL_AddTimer() and SDL_RemoveTimer()
   440 	SDL_WM_SetIcon() now respects the icon colorkey if mask is NULL.
   442 1.1.0:
   443 	Added initial OpenGL support.
   444 	First set GL attributes (such as RGB depth, alpha depth, etc.)
   445 		SDL_GL_SetAttribute()
   446 	Then call SDL_SetVideoMode() with the SDL_OPENGL flag.
   447 	Perform all of your normal GL drawing.
   448 	Finally swap the buffers with the new SDL function:
   449 		SDL_GL_SwapBuffers()
   450 	See the new 'testgl' test program for an example of using GL with SDL.
   452 	You can load GL extension functions by using the function:
   453 		SDL_GL_LoadProcAddress()
   455 	Added functions to initialize and cleanup specific SDL subsystems:
   456 		SDL_InitSubSystem() and SDL_QuitSubSystem()
   458 	Added user-defined event type:
   459 		typedef struct {
   460         		Uint8 type;
   461         		int code;
   462         		void *data1;
   463         		void *data2;
   464 		} SDL_UserEvent;
   465 	This structure is in the "user" member of an SDL_Event.
   467 	Added a function to push events into the event queue:
   468 		SDL_PushEvent()
   470 	Example of using the new SDL user-defined events:
   471 	{
   472 		SDL_Event event;
   474 		event.type = SDL_USEREVENT;
   475 		event.user.code = my_event_code;
   476 		event.user.data1 = significant_data;
   477 		event.user.data2 = 0;
   478 		SDL_PushEvent(&event);
   479 	}
   481 	Added a function to get mouse deltas since last query:
   482 		SDL_GetRelativeMouseState()
   484 	Added a boolean datatype to SDL_types.h:
   485 		SDL_bool = { SDL_TRUE, SDL_FALSE }
   487 	Added a function to get the current audio status:
   488 		SDL_GetAudioState();
   489 	It returns one of:
   494 	Added an AAlib driver (ASCII Art) - by Stephane Peter.
   496 1.0.6:
   497 	The input grab state is reset after each call to SDL_SetVideoMode().
   498 	The input is grabbed by default in fullscreen mode, and ungrabbed in
   499 	windowed mode.  If you want to set input grab to a particular value,
   500 	you should set it after each call to SDL_SetVideoMode().
   502 1.0.5:
   503 	Exposed SDL_AudioInit(), SDL_VideoInit()
   504 	Added SDL_AudioDriverName() and SDL_VideoDriverName()
   506 	Added new window manager function:
   507 		SDL_WM_ToggleFullScreen()
   508 	This is currently implemented only on Linux
   510 	The ALT-ENTER code has been removed - it's not appropriate for a
   511 	lib to bind keys when they aren't even emergency escape sequences.
   513 	ALT-ENTER functionality can be implemented with the following code:
   515 	int Handle_AltEnter(const SDL_Event *event)
   516 	{
   517 	    if ( event->type == SDL_KEYDOWN ) {
   518 	        if ( (event->key.keysym.sym == SDLK_RETURN) &&
   519 	             (event->key.keysym.mod & KMOD_ALT) ) {   
   520 	                SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
   521 	                return(0);
   522 	        }
   523 	    }
   524 	    return(1);
   525 	}
   526 	SDL_SetEventFilter(Handle_AltEnter);
   528 1.0.3:
   529 	Under X11, if you grab the input and hide the mouse cursor,
   530 	the mouse will go into a "relative motion" mode where you
   531 	will always get relative motion events no matter how far in
   532 	each direction you move the mouse - relative motion is not
   533 	bounded by the edges of the window (though the absolute values
   534 	of the mouse positions are clamped by the size of the window).
   535 	The SVGAlib, framebuffer console, and DirectInput drivers all
   536 	have this behavior naturally, and the GDI and BWindow drivers
   537 	never go into "relative motion" mode.
   539 1.0.2:
   540 	Added a function to enable keyboard repeat:
   541 		SDL_EnableKeyRepeat()
   543 	Added a function to grab the mouse and keyboard input
   544 		SDL_WM_GrabInput()
   546 	Added a function to iconify the window.
   547 		SDL_WM_IconifyWindow()
   548 	If this function succeeds, the application will receive an event
   549 	signaling SDL_APPACTIVE event 
   551 1.0.1:
   552 	Added constants to SDL_audio.h for 16-bit native byte ordering:
   555 1.0.0:
   556 	New public release
   558 Version 0.11:
   560 0.11.5:
   561 	A new function SDL_GetVideoSurface() has been added, and returns
   562 	a pointer to the current display surface.
   564 	SDL_AllocSurface() has been renamed SDL_CreateRGBSurface(), and
   565 	a new function SDL_CreateRGBSurfaceFrom() has been added to allow
   566 	creating an SDL surface from an existing pixel data buffer.
   568 	Added SDL_GetRGB() to the headers and documentation.
   570 0.11.4:
   571 	SDL_SetLibraryPath() is no longer meaningful, and has been removed.
   573 0.11.3:
   574 	A new flag for SDL_Init(), SDL_INIT_NOPARACHUTE, prevents SDL from
   575 	installing fatal signal handlers on operating systems that support
   576 	them.
   578 Version 0.9:
   580 0.9.15:
   581 	SDL_CreateColorCursor() has been removed.  Color cursors should
   582 	be implemented as sprites, blitted by the application when the
   583 	cursor moves.  To get smooth color cursor updates when the app
   584 	is busy, pass the SDL_INIT_EVENTTHREAD flag to SDL_Init().  This
   585 	allows you to handle the mouse motion in another thread from an
   586 	event filter function, but is currently only supported by Linux
   587 	and BeOS.  Note that you'll have to protect the display surface
   588 	from multi-threaded access by using mutexes if you do this.
   590 	Thread-safe surface support has been removed from SDL.
   591 	This makes blitting somewhat faster, by removing SDL_MiddleBlit().
   592 	Code that used SDL_MiddleBlit() should use SDL_LowerBlit() instead.
   593 	You can make your surfaces thread-safe by allocating your own
   594 	mutex and making lock/unlock calls around accesses to your surface.
   596 0.9.14:
   597 	SDL_GetMouseState() now takes pointers to int rather than Uint16.
   599 	If you set the SDL_WINDOWID environment variable under UNIX X11,
   600 	SDL will use that as the main window instead of creating it's own.
   601 	This is an unsupported extension to SDL, and not portable at all.
   603 0.9.13:
   604 	Added a function SDL_SetLibraryPath() which can be used to specify
   605 	the directory containing the SDL dynamic libraries.  This is useful
   606 	for commercial applications which ship with particular versions
   607 	of the libraries, and for security on multi-user systems.
   608 	If this function is not used, the default system directories are 
   609 	searched using the native dynamic object loading mechanism.
   611 	In order to support C linkage under Visual C++, you must declare
   612 	main() without any return type:
   613 		main(int argc, char *argv[]) {
   614 			/* Do the program... */
   615 			return(0);
   616 		}
   617 	C++ programs should also return a value if compiled under VC++.
   619 	The blit_endian member of the SDL_VideoInfo struct has been removed.
   621 	SDL_SymToASCII() has been replaced with SDL_GetKeyName(), so there
   622 	is now no longer any function to translate a keysym to a character.
   624 	The SDL_keysym structure has been extended with a 'scancode' and
   625 	'unicode' member.  The 'scancode' is a hardware specific scancode
   626 	for the key that was pressed, and may be 0.  The 'unicode' member
   627 	is a 16-bit UNICODE translation of the key that was pressed along
   628 	with any modifiers or compose keys that have been pressed.
   629 	If no UNICODE translation exists for the key, 'unicode' will be 0.
   631 	Added a function SDL_EnableUNICODE() to enable/disable UNICODE
   632 	translation of character keypresses.  Translation defaults off.
   634 	To convert existing code to use the new API, change code which
   635 	uses SDL_SymToASCII() to get the keyname to use SDL_GetKeyName(),
   636 	and change code which uses it to get the ASCII value of a sym to
   637 	use the 'unicode' member of the event keysym.
   639 0.9.12:
   640 	There is partial support for 64-bit datatypes.  I don't recommend 
   641 	you use this if you have a choice, because 64-bit datatypes are not
   642 	supported on many platforms.  On platforms for which it is supported,
   643 	the SDL_HAS_64BIT_TYPE C preprocessor define will be enabled, and
   644 	you can use the Uint64 and Sint64 datatypes.
   646 	Added functions to SDL_endian.h to support 64-bit datatypes:
   647 	    SDL_SwapLE64(), SDL_SwapBE64(),
   648 	    SDL_ReadLE64(), SDL_ReadBE64(), SDL_WriteLE64(), SDL_WriteBE64()
   650 	A new member "len_ratio" has been added to the SDL_AudioCVT structure,
   651 	and allows you to determine either the original buffer length or the
   652 	converted buffer length, given the other.
   654 	A new function SDL_FreeWAV() has been added to the API to free data
   655 	allocated by SDL_LoadWAV_RW().  This is necessary under Win32 since
   656 	the gcc compiled DLL uses a different heap than VC++ compiled apps.
   658 	SDL now has initial support for international keyboards using the
   659 	Latin character set.
   660 	If a particular mapping is desired, you can set the DEFAULT_KEYBOARD
   661 	compile-time variable, or you can set the environment variable 
   662 	"SDL_KEYBOARD" to a string identifying the keyboard mapping you desire.
   663 	The valid values for these variables can be found in SDL_keyboard.c
   665 	Full support for German and French keyboards under X11 is implemented.
   667 0.9.11:
   668 	The THREADED_EVENTS compile-time define has been replaced with the
   669 	SDL_INIT_EVENTTHREAD flag.  If this flag is passed to SDL_Init(),
   670 	SDL will create a separate thread to perform input event handling.
   671 	If this flag is passed to SDL_Init(), and the OS doesn't support 
   672 	event handling in a separate thread, SDL_Init() will fail.
   673 	Be sure to add calls to SDL_Delay() in your main thread to allow
   674 	the OS to schedule your event thread, or it may starve, leading
   675 	to slow event delivery and/or dropped events.
   676 	Currently MacOS and Win32 do not support this flag, while BeOS 
   677 	and Linux do support it.  I recommend that your application only
   678 	use this flag if absolutely necessary.
   680 	The SDL thread function passed to SDL_CreateThread() now returns a
   681 	status.  This status can be retrieved by passing a non-NULL pointer
   682 	as the 'status' argument to SDL_WaitThread().
   684 	The volume parameter to SDL_MixAudio() has been increased in range
   685 	from (0-8) to (0-128)
   687 	SDL now has a data source abstraction which can encompass a file,
   688 	an area of memory, or any custom object you can envision.  It uses
   689 	these abstractions, SDL_RWops, in the endian read/write functions,
   690 	and the built-in WAV and BMP file loaders.  This means you can load
   691 	WAV chunks from memory mapped files, compressed archives, network
   692 	pipes, or anything else that has a data read abstraction.
   694 	There are three built-in data source abstractions:
   695 	    SDL_RWFromFile(), SDL_RWFromFP(), SDL_RWFromMem()
   696 	along with a generic data source allocation function:
   697 	    SDL_AllocRW()
   698 	These data sources can be used like stdio file pointers with the
   699 	following convenience functions:
   700 	    SDL_RWseek(), SDL_RWread(), SDL_RWwrite(), SDL_RWclose()
   701 	These functions are defined in the new header file "SDL_rwops.h"
   703 	The endian swapping functions have been turned into macros for speed
   704 	and SDL_CalculateEndian() has been removed.  SDL_endian.h now defines
   705 	SDL_BYTEORDER as either SDL_BIG_ENDIAN or SDL_LIL_ENDIAN depending on
   706 	the endianness of the host system.
   708 	The endian read/write functions now take an SDL_RWops pointer
   709 	instead of a stdio FILE pointer, to support the new data source
   710 	abstraction.
   712 	The SDL_*LoadWAV() functions have been replaced with a single
   713 	SDL_LoadWAV_RW() function that takes a SDL_RWops pointer as it's
   714 	first parameter, and a flag whether or not to automatically 
   715 	free it as the second parameter.  SDL_LoadWAV() is a macro for
   716 	backward compatibility and convenience:
   717 	    SDL_LoadWAV_RW(SDL_RWFromFile("sample.wav", "rb"), 1, ...);
   719 	The SDL_*LoadBMP()/SDL_*SaveBMP() functions have each been replaced
   720 	with a single function that takes a SDL_RWops pointer as it's
   721 	first parameter, and a flag whether or not to automatically 
   722 	free it as the second parameter.  SDL_LoadBMP() and SDL_SaveBMP()
   723 	are macros for backward compatibility and convenience:
   724 	    SDL_LoadBMP_RW(SDL_RWFromFile("sample.bmp", "rb"), 1, ...);
   725 	    SDL_SaveBMP_RW(SDL_RWFromFile("sample.bmp", "wb"), 1, ...);
   726 	Note that these functions use SDL_RWseek() extensively, and should
   727 	not be used on pipes or other non-seekable data sources.
   729 0.9.10:
   730 	The Linux SDL_SysWMInfo and SDL_SysWMMsg structures have been 
   731 	extended to support multiple types of display drivers, as well as
   732         safe access to the X11 display when THREADED_EVENTS is enabled.
   733         The new structures are documented in the SDL_syswm.h header file.
   735 	Thanks to John Elliott <jce@seasip.demon.co.uk>, the UK keyboard
   736 	should now work properly, as well as the "Windows" keys on US
   737 	keyboards.
   739 	The Linux CD-ROM code now reads the CD-ROM devices from /etc/fstab
   740 	instead of trying to open each block device on the system.
   741 	The CD must be listed in /etc/fstab as using the iso9660 filesystem.
   743 	On Linux, if you define THREADED_EVENTS at compile time, a separate
   744 	thread will be spawned to gather X events asynchronously from the
   745 	graphics updates.  This hasn't been extensively tested, but it does
   746 	provide a means of handling keyboard and mouse input in a separate
   747 	thread from the graphics thread.  (This is now enabled by default.)
   749 	A special access function SDL_PeepEvents() allows you to manipulate
   750 	the event queue in a thread-safe manner, including peeking at events,
   751 	removing events of a specified type, and adding new events of arbitrary
   752 	type to the queue (use the new 'user' member of the SDL_Event type).
   754 	If you use SDL_PeepEvents() to gather events, then the main graphics
   755 	thread needs to call SDL_PumpEvents() periodically to drive the event
   756 	loop and generate input events.  This is not necessary if SDL has been 
   757 	compiled with THREADED_EVENTS defined, but doesn't hurt.
   759 	A new function SDL_ThreadID() returns the identifier associated with
   760 	the current thread.
   762 0.9.9:
   763 	The AUDIO_STEREO format flag has been replaced with a new 'channels'
   764 	member of the SDL_AudioSpec structure.  The channels are 1 for mono
   765 	audio, and 2 for stereo audio.  In the future more channels may be
   766 	supported for 3D surround sound.
   768 	The SDL_MixAudio() function now takes an additional volume parameter,
   769 	which should be set to SDL_MIX_MAXVOLUME for compatibility with the
   770 	original function.
   772 	The CD-ROM functions which take a 'cdrom' parameter can now be
   773 	passed NULL, and will act on the last successfully opened CD-ROM.
   775 0.9.8:
   776 	No changes, bugfixes only.
   778 0.9.7:
   779 	No changes, bugfixes only.
   781 0.9.6:
   782 	Added a fast rectangle fill function: SDL_FillRect()
   784 	Addition of a useful function for getting info on the video hardware:
   785 	    const SDL_VideoInfo *SDL_GetVideoInfo(void)
   786         This function replaces SDL_GetDisplayFormat().
   788 	Initial support for double-buffering:
   789 	  Use the SDL_DOUBLEBUF flag in SDL_SetVideoMode()
   790 	  Update the screen with a new function: SDL_Flip()
   792 	SDL_AllocSurface() takes two new flags:
   793 	SDL_SRCCOLORKEY means that the surface will be used for colorkey blits
   794 	  and if the hardware supports hardware acceleration of colorkey blits
   795 	  between two surfaces in video memory, to place the surface in video
   796 	  memory if possible, otherwise it will be placed in system memory.
   797 	SDL_SRCALPHA means that the surface will be used for alpha blits and
   798 	  if the hardware supports hardware acceleration of alpha blits between
   799 	  two surfaces in video memory, to place the surface in video memory
   800 	  if possible, otherwise it will be placed in system memory.
   801 	SDL_HWSURFACE now means that the surface will be created with the 
   802 	  same format as the display surface, since having surfaces in video
   803 	  memory is only useful for fast blitting to the screen, and you can't
   804 	  blit surfaces with different surface formats in video memory.
   806 0.9.5:
   807 	You can now pass a NULL mask to SDL_WM_SetIcon(), and it will assume
   808 	that the icon consists of the entire image.
   810 	SDL_LowerBlit() is back -- but don't use it on the display surface.
   811 	It is exactly the same as SDL_MiddleBlit(), but doesn't check for
   812 	thread safety.
   814 	Added SDL_FPLoadBMP(), SDL_FPSaveBMP(), SDL_FPLoadWAV(), which take
   815 	a FILE pointer instead of a file name.
   817 	Added CD-ROM audio control API:
   818 	    SDL_CDNumDrives()
   819 	    SDL_CDName()
   820 	    SDL_CDOpen()
   821 	    SDL_CDStatus()
   822 	    SDL_CDPlayTracks()
   823 	    SDL_CDPlay()
   824 	    SDL_CDPause()
   825 	    SDL_CDResume()
   826 	    SDL_CDStop()
   827 	    SDL_CDEject()
   828 	    SDL_CDClose()
   830 0.9.4:
   831 	No changes, bugfixes only.
   833 0.9.3:
   834 	Mouse motion event now includes relative motion information:
   835 	    Sint16 event->motion.xrel, Sint16 event->motion.yrel
   837 	X11 keyrepeat handling can be disabled by defining IGNORE_X_KEYREPEAT
   838 	    (Add -DIGNORE_X_KEYREPEAT to CFLAGS line in obj/x11Makefile)
   840 0.9.2:
   841 	No changes, bugfixes only.
   843 0.9.1:
   844 	Removed SDL_MapSurface() and SDL_UnmapSurface() -- surfaces are now
   845 	automatically mapped on blit.
   847 0.8.0:
   848 	SDL stable release