[SDL] Stupid problem with blitting
Pete Shinners
pete at shinners.org
Wed Jul 9 23:15:01 PDT 2003
Damien Damien wrote:
> to greate a simple 2D game to test a system we are developing I get SDL
> saying (when using the draw_bmp function from the libsdl site)
> "BlitSurface error: Surfaces must not be locked during blit"
>
> Now, the thing is... I don't lock ANY surface ANYWHERE... So whats wrong?
i'd doublecheck the value of the surface->locked attribute. if it's not
zero the surface sure is locked. then try to find out when and where it
is getting set.
the code inside SDL is testing like this (inside the SDL_UpperBlit func)
if ( src->locked || dst->locked ) {
SDL_SetError("Surfaces must not be locked during blit");
return(-1);
}
More information about the SDL
mailing list