Built-in tests?

With the number of small form factor devices using SDL now, I was just
noticing that some of the tests in ./trunk/SDL/test/ don’t want to run on
anything that is not able of supporting 640x480.

I think it would be nice to support anything down to QVGA?

Some support -width & -height args, others do not.

Does anyone want to do this? Or should I start sending patches? If so, which
is the preferred way?

  • if 640x480 isn’t supported, usage() and die().
  • if 640x480 isn’t supported, try something from SDL_ListModes()

I noticed the same was true in some of the examples projects. (BTW - is there
public svns for the things listed in http://www.libsdl.org/projects/ ?)

Thanks
-Robin

On Sun 30 Dec 2007 15:54, Robin Getz pondered:

With the number of small form factor devices using SDL now, I was just
noticing that some of the tests in ./trunk/SDL/test/ don’t want to run
on anything that is not able of supporting 640x480.

I think it would be nice to support anything down to QVGA?

Some support -width & -height args, others do not.

Does anyone want to do this? Or should I start sending patches? If so,
which
is the preferred way?

  • if 640x480 isn’t supported, usage() and die().
  • if 640x480 isn’t supported, try something from SDL_ListModes()

I noticed the same was true in some of the examples projects.

(BTW - is there public svns for the things listed in
http://www.libsdl.org/projects/ ?)

ping

I think it would be nice to support anything down to QVGA?

Sure!

Some support -width & -height args, others do not.

Does anyone want to do this? Or should I start sending patches? If so, which
is the preferred way?

  • if 640x480 isn’t supported, usage() and die().
  • if 640x480 isn’t supported, try something from SDL_ListModes()

Go for it. The preferred way would be the second method - if 640x480
isn’t supported, try something from SDL_ListModes()

I noticed the same was true in some of the examples projects. (BTW - is there
public svns for the things listed in http://www.libsdl.org/projects/ ?)

No, generally not.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment