What I want added in SDL 1.3

After working around things in the API these are the things I would
like and how I justify them:

These are very good points, and some of them can be addressed now:

SDL_IsCursorVisible();
The only way to know if the cursor is visible now is to check the
return value of SDL_ShowCursor, then you have to change it back after
you check it, seems like a waste of clock cycles to me.

If you pass -1 to SDL_ShowCursor(), it will not change the current
state of cursor visibility, essentially adding a query mechanism.
I added this to today’s CVS.

SDL_GetClipRect();
You can set them till the cows come home but you have know way to
know whats already set for a surface.

Added today, thanks!

SDL_DisplayFormatNoAlpha();
SDL_CreateDisplaySurface();

These functions involve changing the current function semantics, so
if these changes are made it would be in 1.3. You can easily write
these wrappers yourself without touching the SDL internals.

SDL_GetEventFilter();
I’d like to be able to chain EventFilters in my GUI, after I set my
EventFilter I’d like to be able to call one that the user had set
before I initialized my GUI.

Added today, thanks!

Thanks for the great feedback.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

After working around things in the API these are the things I would
like and how I justify them:

SDL_IsCursorVisible();
The only way to know if the cursor is visible now is to check the
return value of SDL_ShowCursor, then you have to change it back after
you check it, seems like a waste of clock cycles to me.

SDL_GetClipRect();
You can set them till the cows come home but you have know way to
know whats already set for a surface.

SDL_DisplayFormatNoAlpha();
I’d like the current SDL_DisplayFormat to be renamed this and for
SDL_DisplayFormat to check the alpha flags for the surface and either
call SDL_DisplayFormatAlpha or SDL_DisplayFromatNoAlpha based upon
them.

SDL_CreateDisplaySurface();
A shortcut function to create a surface that matches the
DisplayFormat, it’d be nice because it would’nt need as many flags as
SDL_CreateRGBSurface. There would have to be an
SDL_CreateDisplaySurfaceAlpha too.

SDL_GetEventFilter();
I’d like to be able to chain EventFilters in my GUI, after I set my
EventFilter I’d like to be able to call one that the user had set
before I initialized my GUI.

“Sam Lantinga” wrote

SDL_GetClipRect();
You can set them till the cows come home but you have know way to
know whats already set for a surface.

Added today, thanks!

for better or worse, i’ve been going straight into the SDL_Surface
structure. the clip_rect variable is documented as “read-only” :]

“Sam Lantinga” wrote

SDL_GetClipRect();
You can set them till the cows come home but you have know way to
know whats already set for a surface.

Added today, thanks!

for better or worse, i’ve been going straight into the SDL_Surface
structure. the clip_rect variable is documented as “read-only” :]

That’s correct. The implementation of SDL_GetClipRect() just copies
clip_rect to the one passed in.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software