Skip to content

SDLx::Surface::blit modifies $dest_rect #199

jtpalmer opened this Issue Jul 30, 2011 · 2 comments

2 participants

PerlGameDev member

When the destination rectangle is clipped the result is stored in $dest_rect. This is documented in SDL::Video::blit_surface, but not SDLx::Surface::blit (both use SDL_BlitSurface). So, this should either be documented, or a copy of $dest_rect should be used to prevent modifications.

@jtpalmer jtpalmer was assigned Aug 6, 2011
PerlGameDev member
kthakore commented Aug 6, 2011

We actually had discussed this before. We decided to document it until we made an option in blit to not change dest_rect.

PerlGameDev member
jtpalmer commented Aug 6, 2011

Documented in 905138e

@jtpalmer jtpalmer closed this Aug 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.