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

Re: [pygame] PATCH: bug in pygame.image.frombuffer



thanks for finding this!

patch applied in rev 1117

if you want the fix before the next milestone build, builds will
become available here:
http://thorbrian.com/pygame/builds.php

On Feb 15, 2008 2:06 PM, Alistair Buxton <a.j.buxton@xxxxxxxxx> wrote:
> Hi,
>
> Found a problem with pygame.image.frombuffer and 8 bit images. The
> call to SDL_CreateRGBSurfaceFrom uses incorrect pitch, which causes
> the image to be be corrupted. pygame.image.fromstring does not have
> this problem so you can use that instead as a workaround. The bug is
> present in latest subversion code.
>
> Demo script and patch are attached.
>
> --
> Alistair Buxton
> a.j.buxton@xxxxxxxxx
>