[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] small bug



Michael Benfield wrote:
> I think I've found a little bug. If you try to convert a surface without SDL video initted, 
> pygame raises an exception. But if you convert_alpha a surface without SDL video, it just segfaults.
> So I just put
> if(!SDL_WasInit(SDL_INIT_VIDEO))
>   return RAISE(PyExc_SDLError, "cannot convert without pygame.display initialized");

whoops, that one slipped through the cracks. all fixed now, thanks!
pygame shouldn't ever segfault. i've tried pretty hard to make SDL all
safe, but i'm sure there's still some unprotected areas.


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org