|
From: Mark B. <mb...@0x...> - 2000-09-11 20:11:13
|
On Mon, 11 Sep 2000, Pete Shinners wrote: > > I'm having some small problems with PySDL, but I'm not sure this is the > > correct forum. The regular discussion forums at SourceForge seemed a bit > > quiet, so I decided to try this instead. > > > > Ok, here goes. > > > > How do I get a proper list of all accepted video modes using PySDL? I just > > want to verify that a specific mode can be used with a certain depth. I > > tried the following code to get some info: > > this is the best place to come for pysdl help and info. > (unless i'm seriously missing out on something :] ) > > sdl.video_list_modes(...) will return 0 if the call to > SDL_ListModes(...) returns NULL. my guess is that the > "C" version takes an entire PixelFormat structure, which > is more information that just bpp. because pysdl video_list_modes > is not setting the rest of the PixelFormat structure, SDL > is returning no results. You'd guess wrong. If you were to read the source code for the various SDL mode enumeration functions, you'd see this. This would probably be a curteous step, before misinforming people as to why something doesn't work as they expect. > at this point, i'm not sure what's up with Mark Baker (the > pysdl maintainer) it's been awhile since i've gotten anything > back from him. if SDL 1.1.5 comes out with no word from Mark > i'm going to take a stab at updating the pysdl source with all > the new features. (i'll probably look deeper into this routine > for you also) I have not been available to contact, until about yesterday. I have a lot to catch up on, but I've read the last letter you've sent me. I don't currently see making a release of a multifile PySDL codebase as being overly important at this point. Indeed, I'd much rather get back to finishing what it was I was working on, before I left, rather then simply make a release that offered nothing in terms of functionality. However, if you would like to contribute patches to PySDL that included support for new releases of SDL, or anything else, you can feel free. The list is here, send away. |