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

Re: [pygame] pygame.image.save corrupts surface in memory



hi,

bug fixed.  to avoid copying the whole image it changed the flags
temporarily.  except the colorkey flag wasn't restored correctly.

Committed revision 2737.

thanks.



On Tue, Jan 26, 2010 at 8:22 AM, Patrick Mullen <saluk64007@xxxxxxxxx> wrote:
> 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.
>