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

2008-02-16 Thread Brian Fisher
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 <[EMAIL PROTECTED]> wrote: > Hi, > > Found a problem with pygame.image.frombu

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

2008-02-15 Thread Alistair Buxton
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 subv