Hi!
When I’m updating a rect with
rect.x=0 rect.y=0 rect.w=0 and rect.h=0
via SDL_UpdateRects() the next update in the SDL_Rect array doesn’t work.
Example:
rect[0].x=0;
rect[0].y=0;
rect[0].w=0;
rect[0].h=0;
rect[1].x=150;
rect[1].y=150;
rect[1].w=pic->w;
rect[1].h=pic->h;
SDL_BlitSurface(pic, &rect[1], screen, &rect[1]);
// Update doesn't work!
SDL_UpdateRects(screen, 2, rect);
I prepared an example for download:
http://members.linuxstart.com/~karlb/bug.tar.gz
Bye, Karl.