Bliting to negative position

Hi,
I’m using SDL 1.2.11 (Debian Etch) and whenever I blit a surface to a
negative position the SDL_Rect holding the coordinates changes.

Why is this happening?

Thanks,
Jonan–
Diario de un pre-inform?tico: http://www.jonansblog.tk

Hi,

This caught me out once too. After you call SDL_BlitSurface, the
destination rect will contain the rectangle after clipping.

Hope this helps,
Peter

2008/7/30 JoNaN88 (a.k.a. Jon Ander Pe?alba) <jonan.listas at gmail.com>:> Hi,

I’m using SDL 1.2.11 (Debian Etch) and whenever I blit a surface to a
negative position the SDL_Rect holding the coordinates changes.

Why is this happening?

Thanks,
Jonan


Diario de un pre-inform?tico: http://www.jonansblog.tk


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello !

This caught me out once too. After you call SDL_BlitSurface, the
destination rect will contain the rectangle after clipping.

This allows you to do optimization.
You can keep a list of dirty rectangles
and only update the needed rectangles.

CU