[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame for S60 update



very cool!

Maybe we could share the file pointer between open fonts?  Might be a
little difficult though.  Depends on how it is coded... it could rely
on the offset being where it was left, or everything could be
calculating the offset as needed.  I guess the easiest way would to
just try it.  Keeping a cache of files, and file pointers could be the
way to do it.

I found this page about screen change events...
http://discussion.forum.nokia.com/forum/showthread.php?t=153135

Does that help?  I assume SDL would need to register that event, and
then do an event post into the event queue?

Do the tests run on the phone?


What's your next plans?  Do you want to start merging in to trunk at some point?



cu,


On Sat, Jan 17, 2009 at 10:03 PM, Jussi Toivola <jtoivola@xxxxxxxxx> wrote:
> Hello,
> new version is out(SVN 1844):
> http://jtoivola.googlepages.com/pygame_20090117_signed.sisx
>
> New features:
> - png, jpg, gif and tif image support.
> - Demo replaced with launcher application
> -- liquid example ported to s60
> -- Comes with initial pen\mouse support( no list scrolling yet )
> - Lots of build script configuration
> - Python embedded as a sis with byte-compiled libraries( PyS60 CE feature )
>
> Detected limitations:
> While implementing the launcher, I stumbled upon a problem with fonts.
> Symbian's c-library (estlib) does not allow multiple open file handles
> on a single file. This causes following code to fail on phone( works
> on emulator ):
>
> font1 = pygame.font.Font( None, 20 )
> font2 = pygame.font.Font( None, 30)
>
> On the second line pygame tries to open the default font file, but
> fails in doing so. I worked around this by caching the surfaces of
> rendered texts but it's good for static texts only. I don't know if
> OpenC handles this better. Caching optimizes the screen updates anyway
> so I'm not sure how severe limitation this actually is.
>
> Also there is no event sent if S60 device's screen orientation
> changes, thus it is not possible to handle it with pygame. Not with
> events anyway and in portable way.
>
> Sources:
>
> Sources are available at: svn://seul.org/svn/pygame/branches/symbian_s60
>
> The port is based on trunk revision 1760( pre 1.9.0 )
>
> --
> ____________________
> Jussi Toivola
>