[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame for S60 update
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame for S60 update
- From: Jussi Toivola <jtoivola@xxxxxxxxx>
- Date: Sat, 17 Jan 2009 13:03:40 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 17 Jan 2009 06:03:45 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=3LCYD/MPJXvXJIA2VLJupE2z1QuMrIQ6l+7o3jvUaOc=; b=lACPBOCOCkmpCBX7p92bXOjThhlhHCfjiJ81RYlAApKOCqprbCTDXQD021rrx1DTsL ErrmRBuqrnuEIiXo5cEObqTA3WiVOpjBR/pf9ZuLoTDYM9bF9uu4C8rnKtWyjxvIBwx7 352PMXzdOzsxwHi8AtmSPH33q9IiSvg0+GNDs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=F8yuIpO2avNcS/j+LWl0hHVUE30C6gDnJs84ywtwLaEd4d9BTsPNRbrbf2kiiAKvEy II1HvxbQN9Z8082IhbBEmgcu8sRYx25JU6gWngPgqefwSQfOvDlmxaMg8NpkHh8h33ds tr8HmjpSaIGv/2fZWK7MCyXmny1VpwYlLk7fo=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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