From: Jan E. <ch...@in...> - 2000-09-11 18:55:23
|
On Mon, 11 Sep 2000, Pete Shinners wrote: >this is the best place to come for pysdl help and info. >(unless i'm seriously missing out on something :] ) Good. Sometimes 'devel'-lists are meant for those developing on a certain product. Questions from 'users' on those lists are not always welcome. >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. Ok, because whatever I tried feeding to it the function just returned 0. Well, I can manage without it, as I just aim for 1024x768 fullscreen or windowed (togglable by the player). That resolution should be available on almost any hardware today, and if it isn't I think Python is too slow on it anyway... :-) >well jan, i'm guessing you're one of the first person even >using the video_list_modes. Always a pioneer. >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) This sounds good. I just started using Python 2.0, and the old modules don't work with it, including pysdl. So far I use 1.52 for the development of the parts that use pysdl, and 2.0 for the parts that rely on the new XML handling. It would be nice if there would be a Python 2.0 version of pysdl some day. I have no idea as to how hard it is to do the port, but I hope it's not impossible? >for now, i'd just hardcode a small list of screen modes for >your app. just pick the standards, and assume you won't have >any problems. (likely, you wont) I need only one resolution, 1024x768. I merely wanted to be able to check the possibility of using that mode before having pysdl try to initialize it. Later I think multiple resolutions should be possible, but that is in a later version. One has to start easy and get something simple that works and then build upon it. Thanks a lot for your help! Btw, I figured out how to use transparency. My png:s have a transaprent color, so it was just a matter of calling the method set_colorkey() (if I remember the name correctly), and it all worked ok. Regards, Chakie --------------------+-------------------------------------------------------- Jan 'Chakie' Ekholm | Balrog New Media http://www.balrog.fi/ Linux Inside | I'm the blue screen of death, nobody hears your screams |