Removing some more references to SDL 1.3
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 17:26:45 -0500
changeset 62513e8c673cad58
parent 6250 cce0ddcf6747
child 6252 2fe50fbc8f91
Removing some more references to SDL 1.3
Makefile.ds
NOTES
README
README.ds
README.iOS
README.pandora
TODO
include/SDL_audio.h
include/doxyfile
test/README
test/testime.c
test/testver.c
     1.1 --- a/Makefile.ds	Sun Jan 22 17:21:00 2012 -0500
     1.2 +++ b/Makefile.ds	Sun Jan 22 17:26:45 2012 -0500
     1.3 @@ -26,7 +26,7 @@
     1.4  #---------------------------------------------------------------------------------
     1.5  ARCH	:=	-mthumb -mthumb-interwork \
     1.6  		-D__NDS__ -DENABLE_NDS -DNO_SIGNAL_H -DDISABLE_THREADS -DPACKAGE=\"SDL\" \
     1.7 -		 -DVERSION=\"1.3\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1  
     1.8 +		 -DVERSION=\"2.0\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1  
     1.9  
    1.10  CFLAGS	:=	-g -Wall -O2\
    1.11  		-march=armv5te -mtune=arm946e-s \
     2.1 --- a/NOTES	Sun Jan 22 17:21:00 2012 -0500
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,172 +0,0 @@
     2.4 -
     2.5 -Sam - Mon Aug  6 23:02:37 PDT 2007
     2.6 -------
     2.7 -Add color modulation to blitting
     2.8 -Blit convert format X -> format Y (needed for texture upload)
     2.9 -Blit copy / blend / modulate format X -> format X (needed for software renderer)
    2.10 -
    2.11 -Create full software renderer for framebuffer interfaces.
    2.12 -
    2.13 -Create texture for surface, keep surface around as pixel source, allow
    2.14 -copying / blending / modulating from surface to display (automatically
    2.15 -generate texture?)
    2.16 -
    2.17 -At that point, should anyone be using anything besides textures for display?
    2.18 -
    2.19 -IRC - Mon Aug  6 23:50:44 PDT 2007
    2.20 ------
    2.21 -[11:07pm] icculus: so we're clear, "textures" replace "surfaces" from 1.2 when you want to get stuff to the screen? So you have a definitely point where it stops being pixels in memory and starts being an object on the graphics card?
    2.22 -[11:07pm] icculus: Upload once, blit many
    2.23 -[11:07pm] icculus: something like that?
    2.24 -[11:07pm] slouken: That's the idea, yes
    2.25 -[11:07pm] icculus: ok, just making sure
    2.26 -[11:08pm] slouken: Many drivers retain the "texture" as a surface and blit to opaque bits which then get copied into a framebuffer.
    2.27 -[11:08pm] slouken: retain -> would retain
    2.28 -[11:08pm] icculus: yeah, I figured
    2.29 -[11:08pm] slouken: That's why the features for surface blitting need to match the features for texture display.
    2.30 -[11:08pm] icculus: But it gives an abstraction where the app has to make a conscious action: the upload is slow, but then the blit is fast.
    2.31 -[11:09pm] icculus: This couldn't just map to LockSurface, though?
    2.32 -[11:09pm] slouken: Yes, exactly.  I wasn't sure whether to make that clear, e.g. can you display any surface, and automatically generate a texture (if necessary)?
    2.33 -[11:09pm] slouken: If not, it simplifies the framebuffer case.
    2.34 -[11:10pm] slouken: But even the framebuffer case will probably still want to convert the bits to the optimal format.
    2.35 -[11:10pm] slouken: And at that point, the non-optimal bits can be thrown away.
    2.36 -[11:11pm] slouken: e.g. SDL_DisplayFormat()
    2.37 -[11:10pm] icculus: oh, that's a good point.
    2.38 -[11:10pm] icculus: hmm
    2.39 -[11:11pm] icculus: yeah, okay
    2.40 -[11:11pm] icculus: I was thinking about if the separation is really necessary, or if LockSurface would imply a texture creation (and you just have much more strict locking requirements than most 1.2 targets had)
    2.41 -[11:11pm] slouken: That's also why I separated the conversion blits from the copy / blend / modulate blits.
    2.42 -[11:12pm] icculus: But I like that the app has to be conscious of when that's happening
    2.43 -[11:12pm] slouken: Yeah, I was really leaning towards making it implicit, but the memory savings is pretty significant for artwork.
    2.44 -[11:12pm] icculus: SDL_compat can wrap the difference for people that can't get their head around it.
    2.45 -[11:13pm] icculus: At the performance cost, that can be a totally external layer that manages it like 1.2's locking.
    2.46 -[11:13pm] slouken: Well, SDL_compat is entirely software on top of a single texture that represents the screen.
    2.47 -[11:14pm] slouken: Yeah, that's the way it's implemented right now.
    2.48 -[11:14pm] slouken: a HWSURFACE is one that is backed by a texture, and lock/unlock is used to synchronize the bits.
    2.49 -[11:14pm] slouken: I'm not sure if that's worth keeping though, if SDL_compat is software only.
    2.50 -[11:15pm] slouken: It would minimize code migration though.
    2.51 -[11:15pm] icculus: yeah
    2.52 -[11:15pm] icculus: I expect SDL_compat to be a complete cesspool
    2.53 -[11:15pm] icculus: just a black box that no one touches or looks at more than necessary
    2.54 -[11:15pm] slouken: more or less, but it's actually pretty clean right now... I think as a side effect of the new API being pretty clean.
    2.55 -[11:15pm] slouken: I'm just unsure how much to use texture vs HWSURFACE
    2.56 -[11:16pm] icculus: Besides, you'd be surprised how quickly you can get people to move if you flag functions as deprecated so that GCC bitches when you use them.
    2.57 -[11:16pm] slouken:
    2.58 -[11:16pm] icculus: how much to use texture vs HWSURFACE in 1.3, or in SDL_compat?
    2.59 -[11:16pm] slouken: in 1.3
    2.60 -[11:17pm] icculus: Pick one or the other, I would say.
    2.61 -[11:17pm] icculus: I don't think it's good to confuse people with both terms
    2.62 -[11:17pm] slouken: yeah
    2.63 -[11:17pm] icculus: Everything is software until it's a texture.
    2.64 -[11:17pm] slouken: I'm just not sure which
    2.65 -[11:17pm] slouken: that's certainly cleanest.
    2.66 -[11:18pm] slouken: and what's currently implemented
    2.67 -[11:18pm] slouken: Let's think through the migration process...
    2.68 -[11:18pm] icculus: Plus dropping the term HWSURFACE gets the point across that a) this isn't 1.2 and b) this is probably going to a 3D api that you should be using anyhow.
    2.69 -[11:18pm] • slouken nods
    2.70 -[11:18pm] icculus: I mean, "texture" is what every API calls these things
    2.71 -[11:18pm] slouken: Yep
    2.72 -[11:19pm] slouken: So let's work through a migration case...
    2.73 -[11:19pm] icculus: ok
    2.74 -[11:19pm] slouken: FooBall loads a big background and a bunch of sprites.  They are png, loaded into SDL_Surface with SDL_image, then converted with SDL_DisplayFormat()
    2.75 -[11:20pm] slouken: Then the background is blitted every frame and the sprites are blended on top.
    2.76 -[11:20pm] slouken: In the compat case:
    2.77 -[11:21pm] slouken: SDL_SetVideoMode() creates a single lockable texture for the display.  DisplayFormat() converts the bits into the optimal format, all blitting is done in software, and SDL_UpdateRects() pushes the bits into the texture and the texture is rendered.
    2.78 -[11:21pm] slouken: In the 1.3 case:
    2.79 -[11:22pm] slouken: The background and sprites are converted to textures using SDL_CreateTextureFromSurface(), and the appropriate blending flags are set.  Each frame copies the textures into place and then the display is presented.
    2.80 -[11:23pm] slouken: compat is software only, 1.3 can be 3D accelerated.
    2.81 -[11:23pm] icculus: wait, why does all blitting have to be done in software in the SDL_compat case?
    2.82 -[11:23pm] icculus: I don't understand why SDL_compat can't move things between surfaces and textures at Lock/Unlock time
    2.83 -[11:24pm] slouken: Because by default the screen isn't created with HWSURFACE, since apps expect to be able to munge the bits.  Therefore, the blits to it have to be done locally.
    2.84 -[11:24pm] icculus: And all the surfaces are flagged HWSURFACE, so ->pixels is NULL until locked.
    2.85 -[11:24pm] icculus: oh
    2.86 -[11:24pm] icculus: It wasn't possible to have a HWSURFACE screen?
    2.87 -[11:25pm] slouken: Yes, it was, just nobody did it because alpha blending needs to read from video memory, and poking pixels across the bus is slow.
    2.88 -[11:25pm] slouken: Even in 1.3, the Xlib case needs to be software renderer if you want to do any alpha blending.
    2.89 -[11:26pm] icculus: But arguably there's no reason that can't all be HWSURFACE (that is, they need to get moved to a texture, even if that's still a software renderer on the backend)
    2.90 -[11:26pm] icculus: That sounds like it's only a problem when an app touches SDL_GetVideoSurface()->pixels without checking if they should lock it.
    2.91 -[11:26pm] icculus: Which might be quite common
    2.92 -[11:27pm] slouken: Yep, in 1.2 the app was able to specify it, and most explicitly don't because it's either not available or bad for alpha blending and direct pixel poking.
    2.93 -[11:27pm] icculus: hmm.
    2.94 -[11:28pm] slouken: You see why I've been going round and round for months on this?
    2.95 -[11:28pm] icculus: Well, we're talking about a compatibility layer; if it's going to crash without LockSurface() on the screen, make them lock it. If that makes it slow, so be it.
    2.96 -[11:29pm] icculus: The options are make small changes and take a performance hit, or make bigger changes and get a big performance win.
    2.97 -[11:29pm] icculus: (if touching the framebuffer directly, that is)
    2.98 -[11:29pm] slouken: Well, at that point it's a compatibility layer, why not just leave it software?  (devil's advocate here)
    2.99 -[11:29pm] icculus: That's a good point.
   2.100 -[11:30pm] slouken: Unless we leave everything surfaces to get the best of both worlds... 
   2.101 -[11:30pm] • slouken gets dizzy
   2.102 -[11:30pm] icculus: From a technical elegance viewpoint, I can see a good mapping between HWSURFACE and textures, but realistically, you want to motivate people to move away from old APIs.
   2.103 -[11:31pm] slouken: Yeah probably.  There's a certain attraction to retaining the SDL_Surface usage even for hardware surfaces, simply because of code reuse.  You don't have to have separate code for your software composition and your rendering.  You also get to keep your old image loading code, etc.
   2.104 -[11:31pm] icculus: man, this really is a pain in the ass, I see what you mean.  
   2.105 -[11:32pm] slouken: Yeah. 
   2.106 -[11:32pm] icculus: hmm, let me think on this awhile.
   2.107 -[11:32pm] slouken: On the other hand, separating the Texture API for rendering is clearer and allows extension in the future.
   2.108 -[11:32pm] slouken: We could potentially allow you to create a software renderer pointed at an SDL surface....
   2.109 -[11:32pm] slouken: Hmmm
   2.110 -[11:33pm] icculus: well, that's what you have now for something like Doom
   2.111 -[11:33pm] icculus: you render to a shadow surface, and throw a hail-mary with SDL_Flip()
   2.112 -[11:34pm] slouken: Yep.  I mean a 1.3 "renderer" with an SDL_Surface or another texture as the target.
   2.113 -[11:34pm] icculus: More or less, that doesn't change. The only important thing there is not generating a new texture every time, but being able to discard what's currently in it for a fresh upload.
   2.114 -[11:34pm] slouken: Yep
   2.115 -[11:34pm] icculus: oh, I see
   2.116 -[11:35pm] icculus: render-to-surface  
   2.117 -[11:35pm] slouken: lol
   2.118 -[11:35pm] slouken: yeah
   2.119 -[11:36pm] slouken: So... where to draw the line with surface vs texture...
   2.120 -[11:37pm] icculus: I don't know, I would think that basically you want to get out of surfaces as fast as possible
   2.121 -[11:37pm] icculus: (disregarding SDL_compat for the moment)
   2.122 -[11:37pm] slouken: Yeah, I think so.
   2.123 -[11:37pm] slouken: Load the bits up, throw them into a texture, and go
   2.124 -[11:37pm] icculus: And basically all you really need for that is an "upload" function.
   2.125 -[11:38pm] slouken: Yep
   2.126 -[11:38pm] icculus: I'd even be inclined to not allow "Locking," so there's no readback.
   2.127 -[11:38pm] icculus: well, I'm sure that would cause a fight
   2.128 -[11:38pm] • slouken thinks
   2.129 -[11:40pm] slouken: Let me see where I use SDL_LockTexture() right now.
   2.130 -[11:42pm] slouken: The only time that's useful is to avoid a buffer copy when you're already writing the bits in the correct format.
   2.131 -[11:42pm] slouken: e.g. lock -> software render into bits -> unlock (upload)
   2.132 -[11:43pm] slouken: that may already be taken care of by the upload though.
   2.133 -[11:43pm] slouken: e.g. software render into bits -> upload
   2.134 -[11:44pm] slouken: Oh yeah, there's probably a memory copy of the bits though, so it's:  upload = copy into cached bits, copy cached bits to video memory as needed.  In that case if you lock to get access to the cached bits directly that's a win.
   2.135 -[11:44pm] icculus: ah, okay
   2.136 -[11:47pm] icculus: I don't know, my head hurts.  
   2.137 -[11:47pm] slouken: Yeah, mine too. 
   2.138 -[11:47pm] slouken: I was pretty happy with the current setup until I noticed that it's really hard to write a framebuffer driver right now.
   2.139 -[11:49pm] slouken: I think maybe if I clean that up and separate conversion blit and copy / blend / modulate blit, then it may work pretty cleanly.
   2.140 -[11:49pm] icculus: yeah
   2.141 -
   2.142 -[11:54pm] slouken: So recapping... SDL_Surface is only used for loading and app composition.
   2.143 -[11:55pm] slouken: SDL surface blitting is enhanced to maintain parity with the renderer features, since it's used as the core of the software renderer.
   2.144 -[11:56pm] slouken: The software renderer is adapted to be a standalone module targeting either an SDL_Surface or an SDL_Texture.
   2.145 -[11:56pm] slouken: SDL_HWSURFACE goes away
   2.146 -[11:57pm] slouken: Anything I'm missing?
   2.147 -[11:58pm] icculus: no, sounds good
   2.148 -[11:58pm] slouken: This means we have the new 1.3 texture API pretty much as it stands.
   2.149 -[11:59pm] slouken: Right?
   2.150 -[11:59pm] icculus: yeah, I think so
   2.151 -
   2.152 -[12:00am] slouken: I was trying to see if it was possible to make a pluggable blit API, but I was going insane with trying to figure out how to make it fast.
   2.153 -[12:01am] slouken: If it were software only I could just say, write your own and register it here, but you'd have to maintain parity with the OpenGL and Direct3D renderers as well.
   2.154 -[12:01am] slouken: At that point you might as well be working in surfaces and uploading to texture. 
   2.155 -[12:02am] icculus: yeah
   2.156 -
   2.157 -TODO
   2.158 -----
   2.159 -Change textures to static/streaming.  Static textures are not lockable,
   2.160 -streaming textures are lockable and may have system memory pixels available.
   2.161 -SDL_compat will use a streaming video texture, and will never be HWSURFACE,
   2.162 -but may be PREALLOC, if system memory pixels are available.
   2.163 -*** DONE Thu Aug 16 14:18:42 PDT 2007
   2.164 -
   2.165 -The software renderer will be abstracted so the surface management can be
   2.166 -used by any renderer that provides functions to copy surfaces to the window.
   2.167 -
   2.168 -Blitters...
   2.169 -----
   2.170 -Copy blit and fill rect are optimized with MMX and SSE now.
   2.171 -
   2.172 -Here are the pieces we still need:
   2.173 -- Merging SDL texture capabilities into the SDL surface system
   2.174 -- Generic fallback blitter architecture
   2.175 -- Custom fast path blitters
     3.1 --- a/README	Sun Jan 22 17:21:00 2012 -0500
     3.2 +++ b/README	Sun Jan 22 17:26:45 2012 -0500
     3.3 @@ -3,7 +3,7 @@
     3.4  
     3.5                                    (SDL)
     3.6  
     3.7 -                                Version 1.3
     3.8 +                                Version 2.0
     3.9  
    3.10  ---
    3.11  http://www.libsdl.org/
     4.1 --- a/README.ds	Sun Jan 22 17:21:00 2012 -0500
     4.2 +++ b/README.ds	Sun Jan 22 17:26:45 2012 -0500
     4.3 @@ -34,7 +34,7 @@
     4.4    2 bytes per pixel. And there is only 256KB reserved for the textures. For instance,
     4.5    testscale won't display sample.bmp, unless it's resized to a smaller picture.
     4.6  * the screen size is 256 x 384. Anything else won't work.
     4.7 -* there is no 8 bits/pixel mode because SDL 1.3 doesn't support palettes.
     4.8 +* there is no 8 bits/pixel mode because SDL 2.0 doesn't support palettes.
     4.9  
    4.10  -Joystick mapping-
    4.11  The Joystick presented to SDL has 2 axes and 8 buttons
     5.1 --- a/README.iOS	Sun Jan 22 17:21:00 2012 -0500
     5.2 +++ b/README.iOS	Sun Jan 22 17:26:45 2012 -0500
     5.3 @@ -97,7 +97,7 @@
     5.4  	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow the flag SDL_WINDOW_BORDERLESS).  Presently, landscape mode is not supported.
     5.5  
     5.6  Video:
     5.7 -	For real time frame-rates, you are advised to use strictly SDL 1.3 video calls.  Using compatibility video calls uploads an OpenGL texture for each frame drawn, and this operation is excruciatingly slow.
     5.8 +	For real time frame-rates, you are advised to use strictly SDL 2.0 video calls.  Using compatibility video calls uploads an OpenGL texture for each frame drawn, and this operation is excruciatingly slow.
     5.9  
    5.10  Textures:
    5.11  	SDL for iPhone Textures supports only SDL_PIXELFORMAT_ABGR8888 and SDL_PIXELFORMAT_RGB24 pixel formats.  This is because texture support in SDL for iPhone is done through OpenGL ES, which supports fewer pixel formats than OpenGL, will not re-order pixel data for you, and has no support for color-paletted formats (without extensions).
     6.1 --- a/README.pandora	Sun Jan 22 17:21:00 2012 -0500
     6.2 +++ b/README.pandora	Sun Jan 22 17:26:45 2012 -0500
     6.3 @@ -1,7 +1,7 @@
     6.4 -SDL 1.3 with open pandora console support ( http://openpandora.org/ )
     6.5 +SDL 2.0 with open pandora console support ( http://openpandora.org/ )
     6.6  =====================================================================
     6.7  
     6.8 -- A pandora specific video driver was writed to allow SDL 1.3 with OpenGL ES
     6.9 +- A pandora specific video driver was writed to allow SDL 2.0 with OpenGL ES
    6.10  support to work on the pandora under the framebuffer. This driver do not have
    6.11  input support for now, so if you use it you will have to add your own control code.
    6.12  The video driver name is "pandora" so if you have problem running it from
     7.1 --- a/TODO	Sun Jan 22 17:21:00 2012 -0500
     7.2 +++ b/TODO	Sun Jan 22 17:26:45 2012 -0500
     7.3 @@ -1,35 +1,9 @@
     7.4 -Eli Gottlieb's checklist for the GSOC shaped windows project.  Dated July 9, 2010.
     7.5 -1. Enable proper linking of the X11 implementation and test it.
     7.6 ---> Find the place in the build system for platform-specific linking flags.  STATUS: DONE
     7.7 ---> Add a linker flag to bring in libXext.a. STATUS: DONE.
     7.8 -2. Build the Win32 implementation of shaped-windows functionality.
     7.9 ---> Add driver functions to the SDL_ShapeDriver in the Win32 driver's SDL_DisplayDevice at the proper point in the code.  STATUS: CHECK.
    7.10 ---> Add a hook in the Windows resize-window code to call Win32_ResizeWindowShape().  STATUS: CHECK.
    7.11 ---> Get the Windows code to build and run properly.  STATUS: IN PROGRESS.
    7.12 -3. Enable building the testeyes program.
    7.13 ---> Reprogram it to use the latest shaped-windows API.  STATUS: CHECK.
    7.14 ---> Get it, along with the rest of the test suite in my branch, building successfully.  STATUS: DONE.
    7.15 ---> Debug testeyes and the platform-specific shaped-window implementations in tandem.  STATUS: IN PROGRESS.
    7.16 -4. Implement the SDL shaped-windows API for Mac OS X using Cocoa.  STATUS: IN PROGRESS
    7.17 ---> Locate (once more) the API documentation for shaped windows under Cocoa.  STATUS: NEARLY FINISHED.
    7.18 ---> Design and encode a version of SDL_ShapeData for Cocoa.  STATUS: IN PROGRESS.
    7.19 ---> Write Cocoa_CreateShaper().  STATUS: MOSTLY DONE, AFAIK.
    7.20 ---> Write Cocoa_ResizeWindowShape().  STATUS: DONE, AFAIK.
    7.21 ---> Write Cocoa_SetWindowShape().  STATUS: IN PROGRESS.
    7.22 ---> If necessary, implement functionality adjunct to SDL_CalculateShapeBitmap() for Cocoa usage.
    7.23 -5. Use testeyes to debug all implementations. STATUS: SPRINT + 2.
    7.24 ---> Debug Cocoa implementation.
    7.25 ---> Debug Win32 implementation.
    7.26 ---> Debug X11 implementation (again).
    7.27 -
    7.28 -1.3 release checklist:
    7.29 +2.0 release checklist:
    7.30   * http://wiki.libsdl.org/moin.cgi/Roadmap
    7.31  
    7.32   * See why windows are being rearranged.  Is the shield window not up?
    7.33   * Make sure you can create and show a fullscreen window in one step
    7.34 - * Figure out how to handle OpenGL context lost on Mac OS X (does it happen?)
    7.35   * Write automated test case for multi-draw APIs
    7.36 - * Make sure you can build SDL without the renderer to slim it down a bunch
    7.37   * Implement assertion code on iPhone
    7.38   * Add __WINDOWS__ in addition to __WIN32__
    7.39  
     8.1 --- a/include/SDL_audio.h	Sun Jan 22 17:21:00 2012 -0500
     8.2 +++ b/include/SDL_audio.h	Sun Jan 22 17:26:45 2012 -0500
     8.3 @@ -61,7 +61,7 @@
     8.4      15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
     8.5      \endverbatim
     8.6   *  
     8.7 - *  There are macros in SDL 1.3 and later to query these bits.
     8.8 + *  There are macros in SDL 2.0 and later to query these bits.
     8.9   */
    8.10  typedef Uint16 SDL_AudioFormat;
    8.11  
     9.1 --- a/include/doxyfile	Sun Jan 22 17:21:00 2012 -0500
     9.2 +++ b/include/doxyfile	Sun Jan 22 17:26:45 2012 -0500
     9.3 @@ -31,7 +31,7 @@
     9.4  # This could be handy for archiving the generated documentation or 
     9.5  # if some version control system is used.
     9.6  
     9.7 -PROJECT_NUMBER         = 1.3.0
     9.8 +PROJECT_NUMBER         = 2.0.0
     9.9  
    9.10  # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
    9.11  # base path where the generated documentation will be put. 
    10.1 --- a/test/README	Sun Jan 22 17:21:00 2012 -0500
    10.2 +++ b/test/README	Sun Jan 22 17:26:45 2012 -0500
    10.3 @@ -15,7 +15,7 @@
    10.4  	testfile	Tests RWops layer
    10.5  	testgamma	Tests video device gamma ramp
    10.6  	testgl		A very simple example of using OpenGL with SDL
    10.7 -	testgl2		An even simpler example using the SDL 1.3 API
    10.8 +	testgl2		An even simpler example using the SDL 2.0 API
    10.9  	testhread	Hacked up test of multi-threading
   10.10  	testiconv	Tests international string conversion
   10.11  	testjoystick	List joysticks and watch joystick events
    11.1 --- a/test/testime.c	Sun Jan 22 17:21:00 2012 -0500
    11.2 +++ b/test/testime.c	Sun Jan 22 17:26:45 2012 -0500
    11.3 @@ -9,7 +9,7 @@
    11.4    including commercial applications, and to alter it and redistribute it
    11.5    freely.
    11.6  */
    11.7 -/* A simple program to test the Input Method support in the SDL library (1.3+) */
    11.8 +/* A simple program to test the Input Method support in the SDL library (2.0+) */
    11.9  
   11.10  #include <stdlib.h>
   11.11  #include <stdio.h>
    12.1 --- a/test/testver.c	Sun Jan 22 17:21:00 2012 -0500
    12.2 +++ b/test/testver.c	Sun Jan 22 17:26:45 2012 -0500
    12.3 @@ -26,10 +26,10 @@
    12.4      SDL_version compiled;
    12.5      SDL_version linked;
    12.6  
    12.7 -#if SDL_VERSION_ATLEAST(1, 3, 0)
    12.8 -    printf("Compiled with SDL 1.3 or newer\n");
    12.9 +#if SDL_VERSION_ATLEAST(2, 0, 0)
   12.10 +    printf("Compiled with SDL 2.0 or newer\n");
   12.11  #else
   12.12 -    printf("Compiled with SDL older than 1.3\n");
   12.13 +    printf("Compiled with SDL older than 2.0\n");
   12.14  #endif
   12.15      SDL_VERSION(&compiled);
   12.16      printf("Compiled version: %d.%d.%d.%d (%s)\n",