[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] PATCH: bug in pygame.image.frombuffer
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] PATCH: bug in pygame.image.frombuffer
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Feb 2008 23:55:45 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 17 Feb 2008 02:55:50 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=EBK3iY35n/OhK5N+FJJgFjLu5/sVsaUGNcEGoRptnzg=; b=m3Eu/egw18o6el+3gahx+2nMgYHXQuO7JFoO3rdo37BGlnq4DCVjwfgG8LtjjT8by1xvCkIeyrTVfXqvizAdwb4M4ttFRuUJ9rTLnajQVITe69VgAO5tc56asq5QpFgWGw+ZZWNuaTq+PHE60e6heGEgY77l2+ajKyC3f2+u1ZE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=kGJOpcShvX07q/hpCLEdQSu+7yUmDrWhtx3WqzL0RJkoczAyr6VK4OKkj/x7WwBPO/w+tthtYaurnrrA4GBI7PYqK7g6FTD8hP2rfahQ5ZwJ5eiCzee/OsrqO+QjRc9OHH5Fo8AKojyQmqNLOpunT+8abV/3RDwOdEd3WIJydhs=
- In-reply-to: <3d374d00802151406j46785134g58e0bb4b20a56bda@xxxxxxxxxxxxxx>
- References: <3d374d00802151406j46785134g58e0bb4b20a56bda@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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
>