[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.image.save corrupts surface in memory
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame.image.save corrupts surface in memory
- From: Patrick Mullen <saluk64007@xxxxxxxxx>
- Date: Mon, 25 Jan 2010 16:22:23 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 25 Jan 2010 19:22:50 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=cjGW0oKDBsqHc31d18fooBr3JsgMvK1VZHYJEzXx3dE=; b=lGrQAgEnI5duQPJLBSLUhzblCUs6tNS8O4seRKCE13G3DIelDGuZZyaR2MCSbrpVKr I52Lr5zGvsrhSn2284goiDbh0ZOc0+L6sgwHCsLEIOMs80N8xnj+jpprTqV9wShZ//TB i/C0ISqepbpKfN4JvU06kVnx74erwEU+grTTs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Vt9cKkDujXQGx9+w8d//IU5Ktvw5g67nc3sVfk+5RRLb+GIE/l0+N72GnVbBJIAKI3 OfwE32oTVYa6gPljh0n/WJreRmvOCx+zecWUy69DRtsQPSPtMb/2209yWDmf+vzO2moc T4SKCrN4ocIC8ceHNgbqgnzPuAilerUsvAuzA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Problem: When calling pygame.image.save(colorkey_surface, "surf.png"), the colorkey_surface in memory loses the color_key information.
Workaround: I call the set_colorkey function after the save
It's not a big issue, but I wouldn't expect that saving an image should affect the actual surface being saved.