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

2010-01-25 Thread René Dudfield
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  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.
>


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

2010-01-25 Thread Patrick Mullen
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.